]> git.proxmox.com Git - mirror_ovs.git/blob - lib/netdev-dpdk.h
dpif-netdev: Avoid reordering of packets in a batch with same megaflow
[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 #define DPDK_FLOW_OFFLOAD_API \
29 .flow_put = netdev_dpdk_flow_put, \
30 .flow_del = netdev_dpdk_flow_del
31
32 void netdev_dpdk_register(void);
33 void free_dpdk_buf(struct dp_packet *);
34
35 #else
36
37 static inline void
38 netdev_dpdk_register(void)
39 {
40 /* Nothing */
41 }
42 static inline void
43 free_dpdk_buf(struct dp_packet *buf OVS_UNUSED)
44 {
45 /* Nothing */
46 }
47
48 #endif
49
50 #endif /* netdev-dpdk.h */