projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Implement asynchronous OFPT_FLOW_MOD commands.
[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 7991706531ee962f6f7e4f5484b0c00ad07ccefc..ef43ba90089cd4911d33a9cbd18dfab6c9bd710f 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,12
+1,14
@@
-#ifndef HAVE_SKB_WARN_LRO
+#if !defined(HAVE_SKB_WARN_LRO) && defined(NETIF_F_LRO)
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/netdevice.h>
void __skb_warn_lro_forwarding(const struct sk_buff *skb)
{
if (net_ratelimit())
#include <linux/netdevice.h>
void __skb_warn_lro_forwarding(const struct sk_buff *skb)
{
if (net_ratelimit())
- pr
intk(KERN_WARNING "%s: received packets cannot be forwarded"
-
" while LRO is enabled\n",
skb->dev->name);
+ pr
_warn("%s: received packets cannot be forwarded while LRO is enabled\n",
+ skb->dev->name);
}
}
-#endif
/* HAVE_SKB_WARN_LRO */
+#endif