summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2016-10-17 18:02:22 +0100
committerDavid S. Miller <davem@davemloft.net>2016-10-17 13:13:23 -0400
commita0e65de71527477b100afe1e9ab2667d70f94d9e (patch)
tree22fb3232f7b38af7b338002e8dac700e609fa6ed /net/core/dev.c
parentca8eddc2759c949940720b5dc347e93bc981f5f2 (diff)
downloadlwn-a0e65de71527477b100afe1e9ab2667d70f94d9e.tar.gz
lwn-a0e65de71527477b100afe1e9ab2667d70f94d9e.zip
net: report right mtu value in error message
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>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 6498cc2ba8f6..352e98129601 100644
--- 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->min_mtu);
+ dev->name, new_mtu, dev->max_mtu);
return -EINVAL;
}