]> git.proxmox.com Git - mirror_ovs.git/blame - lib/dpdk.h
tests: windows ovsdb online compact
[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
20#ifdef DPDK_NETDEV
21
22#include <rte_config.h>
23#include <rte_lcore.h>
24
25#define NON_PMD_CORE_ID LCORE_ID_ANY
26
27#else
28
29#define NON_PMD_CORE_ID UINT32_MAX
30
31#endif /* DPDK_NETDEV */
32
33struct smap;
34
35void dpdk_init(const struct smap *ovs_other_config);
36void dpdk_set_lcore_id(unsigned cpu);
37const char *dpdk_get_vhost_sock_dir(void);
38
39#endif /* dpdk.h */