Branch data Line data Source code
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 : 1288 : VLOG_DEFINE_THIS_MODULE(dpdk);
8 : :
9 : : void
10 : 103911 : dpdk_init(const struct smap *ovs_other_config)
11 : : {
12 : : static struct ovsthread_once once = OVSTHREAD_ONCE_INITIALIZER;
13 : :
14 [ + + ]: 103911 : if (ovsthread_once_start(&once)) {
15 [ - + ]: 614 : if (smap_get_bool(ovs_other_config, "dpdk-init", false)) {
16 [ # # ]: 0 : VLOG_ERR("DPDK not supported in this copy of Open vSwitch.");
17 : : }
18 : 614 : ovsthread_once_done(&once);
19 : : }
20 : 103911 : }
|