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:
ca8eddc
)
net: report right mtu value in error message
author
Jakub Kicinski
<jakub.kicinski@netronome.com>
Mon, 17 Oct 2016 17:02:22 +0000
(18:02 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 17 Oct 2016 17:13:23 +0000
(13:13 -0400)
Check is for max_mtu but message reports min_mtu.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.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 6498cc2ba8f65c3ea708f0df087ce62a7edefb80..352e9812960110f789eee25482ada1142215cb78 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-6372,7
+6372,7
@@
int dev_set_mtu(struct net_device *dev, int new_mtu)
if (dev->max_mtu > 0 && new_mtu > dev->max_mtu) {
net_err_ratelimited("%s: Invalid MTU %d requested, hw max %d\n",
- dev->name, new_mtu, dev->m
in
_mtu);
+ dev->name, new_mtu, dev->m
ax
_mtu);
return -EINVAL;
}