X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Fdev-openvswitch.c;h=5b7444bb3f20e70f581b0eb9371735afc9653ce4;hb=55cc89d6b427ca99dbc1217653033e6308318409;hp=7be33f6e7eae70d9032c7271cfbc27f0710f420c;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=openvswitch diff --git a/datapath/linux-2.6/compat-2.6/dev-openvswitch.c b/datapath/linux-2.6/compat-2.6/dev-openvswitch.c index 7be33f6e..5b7444bb 100644 --- a/datapath/linux-2.6/compat-2.6/dev-openvswitch.c +++ b/datapath/linux-2.6/compat-2.6/dev-openvswitch.c @@ -1,12 +1,8 @@ -#include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +#ifndef HAVE_DEV_DISABLE_LRO #include -#ifndef NETIF_F_LRO -void dev_disable_lro(struct net_device *dev) { } -#else - +#ifdef NETIF_F_LRO #include /** @@ -29,7 +25,8 @@ void dev_disable_lro(struct net_device *dev) } WARN_ON(dev->features & NETIF_F_LRO); } - +#else +void dev_disable_lro(struct net_device *dev) { } #endif /* NETIF_F_LRO */ -#endif /* kernel < 2.6.27 */ +#endif /* HAVE_DEV_DISABLE_LRO */