projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Check for skb_cow_head(), not skb_cow().
[openvswitch]
/
datapath
/
linux-2.6
/
compat-2.6
/
skbuff-openvswitch.c
diff --git
a/datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c
b/datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c
index a9743adc51702c27e86010b0c65deafc88a7008a..e639b5a183b44100909ee800126a4dd550503390 100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c
+++ b/
datapath/linux-2.6/compat-2.6/skbuff-openvswitch.c
@@
-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>
#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);
}
" while LRO is enabled\n", skb->dev->name);
}
-#endif
/* kernel < 2.6.27 */
+#endif