X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Flinux%2Fnetdevice.h;h=ba1fc593ec92be6d73a08b95ba79bfa1a327fc8d;hb=a2b7fd3fa66e1b3eddc4dfc437d7d9eec4670cfb;hp=176d1e679ecb7b8da792389bc13ce2b6644463be;hpb=fab52e16f7d8ccdbad53c5037cd04d5863a2cb4a;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/include/linux/netdevice.h b/datapath/linux/compat/include/linux/netdevice.h index 176d1e679..ba1fc593e 100644 --- a/datapath/linux/compat/include/linux/netdevice.h +++ b/datapath/linux/compat/include/linux/netdevice.h @@ -161,17 +161,13 @@ static inline struct net_device *dev_get_by_index_rcu(struct net *net, int ifind #define NETIF_F_V6_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IPV6_CSUM) #endif -#ifndef HAVE_SKB_GSO_SEGMENT +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) #define skb_gso_segment rpl_skb_gso_segment struct sk_buff *rpl_skb_gso_segment(struct sk_buff *skb, u32 features); -#endif -#ifndef HAVE_NETIF_SKB_FEATURES #define netif_skb_features rpl_netif_skb_features u32 rpl_netif_skb_features(struct sk_buff *skb); -#endif -#ifndef HAVE_NETIF_NEEDS_GSO #define netif_needs_gso rpl_netif_needs_gso static inline int rpl_netif_needs_gso(struct sk_buff *skb, int features) {