git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Add configure test for skb_warn_if_lro().
[sliver-openvswitch.git]
/
datapath
/
linux-2.6
/
compat-2.6
/
dev-openvswitch.c
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
7be33f6
..
180b72a
100644
(file)
--- 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 <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
+#ifndef HAVE_SKB_WARN_LRO
#include <linux/netdevice.h>
#ifndef NETIF_F_LRO
#include <linux/netdevice.h>
#ifndef NETIF_F_LRO
-void dev_disable_lro(struct net_device *dev) { }
-#else
-
#include <linux/ethtool.h>
/**
#include <linux/ethtool.h>
/**
@@
-32,4
+28,4
@@
void dev_disable_lro(struct net_device *dev)
#endif /* NETIF_F_LRO */
#endif /* NETIF_F_LRO */
-#endif /*
kernel < 2.6.27
*/
+#endif /*
HAVE_SKB_WARN_LRO
*/