X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Fskbuff-openvswitch.c;h=e639b5a183b44100909ee800126a4dd550503390;hb=55cc89d6b427ca99dbc1217653033e6308318409;hp=a9743adc51702c27e86010b0c65deafc88a7008a;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=openvswitch diff --git a/datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c b/datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c index a9743adc..e639b5a1 100644 --- a/datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c +++ b/datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c @@ -1,5 +1,4 @@ -#include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +#if !defined(HAVE_SKB_WARN_LRO) && defined(NETIF_F_LRO) #include @@ -10,4 +9,4 @@ void __skb_warn_lro_forwarding(const struct sk_buff *skb) " while LRO is enabled\n", skb->dev->name); } -#endif /* kernel < 2.6.27 */ +#endif