dpif-netlink: add GENEVE creation support
[cascardo/ovs.git] / lib / netdev-nodpdk.c
1 #include <config.h>
2 #include "netdev-dpdk.h"
3 #include "smap.h"
4 #include "ovs-thread.h"
5 #include "openvswitch/vlog.h"
6
7 VLOG_DEFINE_THIS_MODULE(dpdk);
8
9 void
10 dpdk_init(const struct smap *ovs_other_config)
11 {
12     static struct ovsthread_once once = OVSTHREAD_ONCE_INITIALIZER;
13
14     if (ovsthread_once_start(&once)) {
15         if (smap_get_bool(ovs_other_config, "dpdk-init", false)) {
16             VLOG_ERR("DPDK not supported in this copy of Open vSwitch.");
17         }
18         ovsthread_once_done(&once);
19     }
20 }