datapath: Enable tunnel GSO features.
[cascardo/ovs.git] / datapath / linux / compat / include / linux / netdev_features.h
1 #ifndef __LINUX_NETDEV_FEATURES_WRAPPER_H
2 #define __LINUX_NETDEV_FEATURES_WRAPPER_H
3
4 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
5 #include_next <linux/netdev_features.h>
6 #endif
7
8 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
9 #define NETIF_F_HW_VLAN_CTAG_TX NETIF_F_HW_VLAN_TX
10 #endif
11
12 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
13 #define NETIF_F_GSO_ENCAP_ALL    0
14
15 #else
16
17 #ifndef NETIF_F_GSO_GRE
18 #define NETIF_F_GSO_GRE 0
19 #endif
20
21 #ifndef NETIF_F_GSO_GRE_CSUM
22 #define NETIF_F_GSO_GRE_CSUM 0
23 #endif
24
25 #ifndef NETIF_F_GSO_IPIP
26 #define NETIF_F_GSO_IPIP 0
27 #endif
28
29 #ifndef NETIF_F_GSO_SIT
30 #define NETIF_F_GSO_SIT 0
31 #endif
32
33 #ifndef NETIF_F_GSO_UDP_TUNNEL
34 #define NETIF_F_GSO_UDP_TUNNEL 0
35 #endif
36
37 #ifndef NETIF_F_GSO_UDP_TUNNEL_CSUM
38 #define NETIF_F_GSO_UDP_TUNNEL_CSUM 0
39 #endif
40
41 #ifndef NETIF_F_GSO_MPLS
42 #define NETIF_F_GSO_MPLS 0
43 #endif
44
45 #define NETIF_F_GSO_ENCAP_ALL   (NETIF_F_GSO_GRE |                      \
46                                  NETIF_F_GSO_GRE_CSUM |                 \
47                                  NETIF_F_GSO_IPIP |                     \
48                                  NETIF_F_GSO_SIT |                      \
49                                  NETIF_F_GSO_UDP_TUNNEL |               \
50                                  NETIF_F_GSO_UDP_TUNNEL_CSUM |          \
51                                  NETIF_F_GSO_MPLS)
52 #endif
53
54 #endif