]> git.proxmox.com Git - mirror_ovs.git/blame - lib/dpdk-stub.c
ovs-vswitchd: Better document that ovs-vswitchd manages its own datapaths.
[mirror_ovs.git] / lib / dpdk-stub.c
CommitLineData
563bbfdc 1/*
01961bbd 2 * Copyright (c) 2014, 2015, 2016 Nicira, Inc.
563bbfdc
DDP
3 * Copyright (c) 2016 Red Hat, Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
bab69409 18#include <config.h>
01961bbd
DDP
19#include "dpdk.h"
20
bab69409
AC
21#include "smap.h"
22#include "ovs-thread.h"
23#include "openvswitch/vlog.h"
24
25VLOG_DEFINE_THIS_MODULE(dpdk);
26
27void
28dpdk_init(const struct smap *ovs_other_config)
29{
ec2b0701
DDP
30 if (smap_get_bool(ovs_other_config, "dpdk-init", false)) {
31 static struct ovsthread_once once = OVSTHREAD_ONCE_INITIALIZER;
bab69409 32
ec2b0701 33 if (ovsthread_once_start(&once)) {
bab69409 34 VLOG_ERR("DPDK not supported in this copy of Open vSwitch.");
ec2b0701 35 ovsthread_once_done(&once);
bab69409 36 }
bab69409
AC
37 }
38}
01961bbd
DDP
39
40void
41dpdk_set_lcore_id(unsigned cpu OVS_UNUSED)
42{
43 /* Nothing */
44}
45
46const char *
47dpdk_get_vhost_sock_dir(void)
48{
49 return NULL;
50}
a14d1cc8
MK
51
52bool
53dpdk_vhost_iommu_enabled(void)
54{
55 return false;
56}
40c23a57
MC
57
58void
59print_dpdk_version(void)
60{
61}