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=d19cedb28fa32091d149749d326707d8405cbbb6;hp=180b72a47be6f6d87a121651abd26cfa6d7ccadd;hpb=14cf356bf27c3c7e52a1f8fe3d7f0ffcb19af7fb;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 180b72a4..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,8 +1,8 @@ -#ifndef HAVE_SKB_WARN_LRO +#ifndef HAVE_DEV_DISABLE_LRO #include -#ifndef NETIF_F_LRO +#ifdef NETIF_F_LRO #include /** @@ -25,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 /* HAVE_SKB_WARN_LRO */ +#endif /* HAVE_DEV_DISABLE_LRO */