summaryrefslogtreecommitdiff
path: root/lib/netdev-dpdk.h
diff options
context:
space:
mode:
authorPravin <pshelar@nicira.com>2014-03-20 22:07:44 -0700
committerPravin B Shelar <pshelar@nicira.com>2014-03-21 11:48:28 -0700
commit8617affff4f6570ef9ebeafe471e7f14a2c630e3 (patch)
tree24e3ec57a7862609f721b0935bda16420dd37003 /lib/netdev-dpdk.h
parent8a9562d21a40c765a8ae6775a070cb279cb2147a (diff)
downloadopenvswitch-8617affff4f6570ef9ebeafe471e7f14a2c630e3.tar.gz
netdev-dpdk: Use multiple core for dpdk IO.
DPDK need to set _lcore_id for using multiple core. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Thomas Graf <tgraf@redhat.com>
Diffstat (limited to 'lib/netdev-dpdk.h')
-rw-r--r--lib/netdev-dpdk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netdev-dpdk.h b/lib/netdev-dpdk.h
index 5449a6b39..55984e873 100644
--- a/lib/netdev-dpdk.h
+++ b/lib/netdev-dpdk.h
@@ -21,12 +21,14 @@
int dpdk_init(int argc, char **argv);
void netdev_dpdk_register(void);
void free_dpdk_buf(struct ofpbuf *);
+int pmd_thread_setaffinity_cpu(int cpu);
#else
#define dpdk_init(arg1, arg2) (0)
#define netdev_dpdk_register()
#define free_dpdk_buf(arg)
+#define pmd_thread_setaffinity_cpu(c) (0)
#endif /* DPDK_NETDEV */
#endif