netdev-dpdk: Fix thread_is_pmd() symbol conflict.
authorJoe Stringer <joe@ovn.org>
Tue, 12 Jan 2016 19:32:41 +0000 (11:32 -0800)
committerJoe Stringer <joe@ovn.org>
Tue, 12 Jan 2016 20:58:52 +0000 (12:58 -0800)
commit976b441345df85dd7adb973f8ae208f588d764a0
tree4e7e293ec99e6ee269a86fce5dd586cecb52d165
parent33ae5c6d9a6e87e7e2439d0cf4a7725417db714b
netdev-dpdk: Fix thread_is_pmd() symbol conflict.

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

The version used in this file operates in the fastpath, so it cannot
switch to using the newly introduced version; the new version lives
outside of the dpdk portions of OVS so its implementation cannot be
shared with this function. Rename it to resolve the conflict.

Fixes: 2f8932e8403a ("poll: Suppress logging for pmd threads.")
Suggested-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
lib/netdev-dpdk.c