datapath: Add configure test for skb_warn_if_lro().
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / skbuff-openvswitch.c
index a9743ad..7991706 100644 (file)
@@ -1,5 +1,4 @@
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
+#ifndef HAVE_SKB_WARN_LRO
 
 #include <linux/netdevice.h>
 
@@ -10,4 +9,4 @@ void __skb_warn_lro_forwarding(const struct sk_buff *skb)
                                    " while LRO is enabled\n", skb->dev->name);
 }
 
-#endif /* kernel < 2.6.27 */
+#endif /* HAVE_SKB_WARN_LRO */