]>
Commit | Line | Data |
---|---|---|
e92387bc DDP |
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 | ||
8a9562d2 PS |
17 | #ifndef NETDEV_DPDK_H |
18 | #define NETDEV_DPDK_H | |
19 | ||
8a9562d2 | 20 | #include <config.h> |
b8da6cce | 21 | |
01961bbd DDP |
22 | #include "openvswitch/compiler.h" |
23 | ||
e14deea0 | 24 | struct dp_packet; |
91088554 | 25 | |
b8da6cce | 26 | #ifdef DPDK_NETDEV |
8a9562d2 | 27 | |
8a9562d2 | 28 | void netdev_dpdk_register(void); |
e14deea0 | 29 | void free_dpdk_buf(struct dp_packet *); |
8a9562d2 PS |
30 | |
31 | #else | |
32 | ||
b8da6cce AZ |
33 | static inline void |
34 | netdev_dpdk_register(void) | |
35 | { | |
36 | /* Nothing */ | |
37 | } | |
b8da6cce | 38 | static inline void |
e14deea0 | 39 | free_dpdk_buf(struct dp_packet *buf OVS_UNUSED) |
b8da6cce AZ |
40 | { |
41 | /* Nothing */ | |
42 | } | |
43 | ||
8a9562d2 | 44 | #endif |
01961bbd DDP |
45 | |
46 | #endif /* netdev-dpdk.h */ |