]> git.proxmox.com Git - mirror_ovs.git/blame - lib/dpdk.h
lldp: fix a buffer overflow when handling management address TLV
[mirror_ovs.git] / lib / dpdk.h
CommitLineData
563bbfdc 1/*
01961bbd 2 * Copyright (c) 2016 Nicira, Inc.
563bbfdc
DDP
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
01961bbd
DDP
17#ifndef DPDK_H
18#define DPDK_H
19
a14d1cc8
MK
20#include <stdbool.h>
21
01961bbd
DDP
22#ifdef DPDK_NETDEV
23
24#include <rte_config.h>
25#include <rte_lcore.h>
26
27#define NON_PMD_CORE_ID LCORE_ID_ANY
28
29#else
30
31#define NON_PMD_CORE_ID UINT32_MAX
32
33#endif /* DPDK_NETDEV */
34
35struct smap;
3e52fa56 36struct ovsrec_open_vswitch;
01961bbd
DDP
37
38void dpdk_init(const struct smap *ovs_other_config);
39void dpdk_set_lcore_id(unsigned cpu);
40const char *dpdk_get_vhost_sock_dir(void);
a14d1cc8 41bool dpdk_vhost_iommu_enabled(void);
30e834dc 42bool dpdk_vhost_postcopy_enabled(void);
43307ad0 43bool dpdk_per_port_memory(void);
1276e3db 44bool dpdk_available(void);
40c23a57 45void print_dpdk_version(void);
3e52fa56 46void dpdk_status(const struct ovsrec_open_vswitch *);
b250b39a
HH
47bool dpdk_get_cpu_has_isa(const char *arch, const char *feature);
48
01961bbd 49#endif /* dpdk.h */