projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a9e950
)
net: make WARN_ON in dev_disable_lro() useful
author
Michał Mirosław
<mirq-linux@rere.qmqm.pl>
Thu, 21 Apr 2011 12:42:15 +0000
(12:42 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 25 Apr 2011 18:56:27 +0000
(11:56 -0700)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 379c993ff42175f62d4d105aa5488db6aa40e575..541f22a035a223daaec4564949bc984a19c411c6 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-1315,7
+1315,8
@@
void dev_disable_lro(struct net_device *dev)
return;
__ethtool_set_flags(dev, flags & ~ETH_FLAG_LRO);
- WARN_ON(dev->features & NETIF_F_LRO);
+ if (unlikely(dev->features & NETIF_F_LRO))
+ netdev_WARN(dev, "failed to disable LRO!\n");
}
EXPORT_SYMBOL(dev_disable_lro);