]>
Commit | Line | Data |
---|---|---|
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 | ||
35 | struct smap; | |
3e52fa56 | 36 | struct ovsrec_open_vswitch; |
01961bbd DDP |
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); | |
a14d1cc8 | 41 | bool dpdk_vhost_iommu_enabled(void); |
30e834dc | 42 | bool dpdk_vhost_postcopy_enabled(void); |
43307ad0 | 43 | bool dpdk_per_port_memory(void); |
1276e3db | 44 | bool dpdk_available(void); |
40c23a57 | 45 | void print_dpdk_version(void); |
3e52fa56 | 46 | void dpdk_status(const struct ovsrec_open_vswitch *); |
01961bbd | 47 | #endif /* dpdk.h */ |