]> git.proxmox.com Git - mirror_ovs.git/blob - lib/netdev-dpdk.h
b7d02a77dc72e7ff8b1f85446af08b535fecb049
[mirror_ovs.git] / lib / netdev-dpdk.h
1 /*
2 * Copyright (c) 2014, 2015, 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 NETDEV_DPDK_H
18 #define NETDEV_DPDK_H
19
20 #include <config.h>
21
22 #include "openvswitch/compiler.h"
23
24 struct dp_packet;
25
26 #ifdef DPDK_NETDEV
27
28 void netdev_dpdk_register(void);
29 void free_dpdk_buf(struct dp_packet *);
30
31 #else
32
33 static inline void
34 netdev_dpdk_register(void)
35 {
36 /* Nothing */
37 }
38 static inline void
39 free_dpdk_buf(struct dp_packet *buf OVS_UNUSED)
40 {
41 /* Nothing */
42 }
43
44 #endif
45
46 #endif /* netdev-dpdk.h */