DPDK build was broken after commit 2f8932e8403a ("poll: Suppress logging
for pmd threads.") due to the following error:

lib/netdev-dpdk.c:245:13: error: static declaration of ‘thread_is_pmd’
follows non-static declaration
lib/ovs-thread.h:526:6: note: previous declaration of ‘thread_is_pmd’
was here

Reported-at: https://travis-ci.org/openvswitch/ovs/jobs/101648756
Fixes: 2f8932e8403a ("poll: Suppress logging for pmd threads.")
CC: Ilya Maximets <i.maxim...@samsung.com>
Signed-off-by: Joe Stringer <j...@ovn.org>
---
 lib/netdev-dpdk.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index b209df2390ca..2bf276f8eaaf 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -242,8 +242,6 @@ struct netdev_rxq_dpdk {
     int port_id;
 };
 
-static bool thread_is_pmd(void);
-
 static int netdev_dpdk_construct(struct netdev *);
 
 struct virtio_net * netdev_dpdk_get_virtio(const struct netdev_dpdk *dev);
@@ -2304,9 +2302,3 @@ pmd_thread_setaffinity_cpu(unsigned cpu)
 
     return 0;
 }
-
-static bool
-thread_is_pmd(void)
-{
-    return rte_lcore_id() != NON_PMD_CORE_ID;
-}
-- 
2.1.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to