X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Fdev-openvswitch.c;h=180b72a47be6f6d87a121651abd26cfa6d7ccadd;hb=14cf356bf27c3c7e52a1f8fe3d7f0ffcb19af7fb;hp=7be33f6e7eae70d9032c7271cfbc27f0710f420c;hpb=30ea5d93dc1258c59e3ebbe090169cd3bf9ef078;p=sliver-openvswitch.git 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 7be33f6e7..180b72a47 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_SKB_WARN_LRO #include #ifndef NETIF_F_LRO -void dev_disable_lro(struct net_device *dev) { } -#else - #include /** @@ -32,4 +28,4 @@ void dev_disable_lro(struct net_device *dev) #endif /* NETIF_F_LRO */ -#endif /* kernel < 2.6.27 */ +#endif /* HAVE_SKB_WARN_LRO */