[kmemdup], [OVS_DEFINE([HAVE_KMEMDUP])])
OVS_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [skb_warn_if_lro],
[OVS_DEFINE([HAVE_SKB_WARN_LRO])])
+ OVS_GREP_IFELSE([$KSRC26/include/linux/netdevice.h], [dev_disable_lro],
+ [OVS_DEFINE([HAVE_DEV_DISABLE_LRO])])
# Check for the proto_data_valid member in struct sk_buff. The [^@]
# is necessary because some versions of this header remove the
# member but retain the kerneldoc comment that describes it (which
-#ifndef HAVE_SKB_WARN_LRO
+#ifndef HAVE_DEV_DISABLE_LRO
#include <linux/netdevice.h>
}
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 */
extern void unregister_netdevice_many(struct list_head *head);
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
+#ifndef HAVE_DEV_DISABLE_LRO
extern void dev_disable_lro(struct net_device *dev);
#endif
-#ifndef HAVE_SKB_WARN_LRO
+#if !defined(HAVE_SKB_WARN_LRO) && defined(NETIF_F_LRO)
#include <linux/netdevice.h>
" while LRO is enabled\n", skb->dev->name);
}
-#endif /* HAVE_SKB_WARN_LRO */
+#endif