datapath: Fix build with backported netdev_alloc_skb_ip_align()
[openvswitch] / datapath / linux-2.6 / compat-2.6 / skbuff-openvswitch.c
index a9743adc51702c27e86010b0c65deafc88a7008a..e639b5a183b44100909ee800126a4dd550503390 100644 (file)
@@ -1,5 +1,4 @@
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
+#if !defined(HAVE_SKB_WARN_LRO) && defined(NETIF_F_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