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=4eb26d3cd41b6bcbd3e12e85bc9e4f36f47eb430;hp=7be33f6e7eae70d9032c7271cfbc27f0710f420c;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;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 */