]>
git.proxmox.com Git - mirror_ovs.git/blob - lib/dpdk.h
2 * Copyright (c) 2016 Nicira, Inc.
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:
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 #include <rte_config.h>
25 #include <rte_lcore.h>
27 #define NON_PMD_CORE_ID LCORE_ID_ANY
31 #define NON_PMD_CORE_ID UINT32_MAX
33 #endif /* DPDK_NETDEV */
36 struct ovsrec_open_vswitch
;
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
);