10 #include <rte_config.h>
12 #include <rte_debug.h>
13 #include <rte_ethdev.h>
14 #include <rte_eth_ring.h>
15 #include <rte_errno.h>
16 #include <rte_memzone.h>
17 #include <rte_memcpy.h>
18 #include <rte_cycles.h>
19 #include <rte_spinlock.h>
20 #include <rte_launch.h>
21 #include <rte_malloc.h>
23 #define NON_PMD_CORE_ID LCORE_ID_ANY
25 int dpdk_init(int argc, char **argv);
26 void netdev_dpdk_register(void);
27 void free_dpdk_buf(struct dp_packet *);
28 int pmd_thread_setaffinity_cpu(unsigned cpu);
32 #define NON_PMD_CORE_ID UINT32_MAX
37 dpdk_init(int argc, char **argv)
39 if (argc >= 2 && !strcmp(argv[1], "--dpdk")) {
40 ovs_fatal(0, "DPDK support not built into this copy of Open vSwitch.");
46 netdev_dpdk_register(void)
52 free_dpdk_buf(struct dp_packet *buf OVS_UNUSED)
58 pmd_thread_setaffinity_cpu(unsigned cpu OVS_UNUSED)
63 #endif /* DPDK_NETDEV */