]> git.proxmox.com Git - mirror_ovs.git/blob - lib/dpdk.h
ovsdb-idl: Remove prototype for function that is not defined or used.
[mirror_ovs.git] / lib / dpdk.h
1 /*
2 * Copyright (c) 2016 Nicira, Inc.
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
17 #ifndef DPDK_H
18 #define DPDK_H
19
20 #include <stdbool.h>
21
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
35 struct smap;
36 struct ovsrec_open_vswitch;
37
38 void dpdk_init(const struct smap *ovs_other_config);
39 void dpdk_set_lcore_id(unsigned cpu);
40 const char *dpdk_get_vhost_sock_dir(void);
41 bool dpdk_vhost_iommu_enabled(void);
42 bool dpdk_vhost_postcopy_enabled(void);
43 bool dpdk_per_port_memory(void);
44 bool dpdk_available(void);
45 void print_dpdk_version(void);
46 void dpdk_status(const struct ovsrec_open_vswitch *);
47 bool dpdk_get_cpu_has_isa(const char *arch, const char *feature);
48
49 #endif /* dpdk.h */