diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2016-10-17 18:02:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-17 13:13:23 -0400 |
commit | a0e65de71527477b100afe1e9ab2667d70f94d9e (patch) | |
tree | 22fb3232f7b38af7b338002e8dac700e609fa6ed /net/core/dev.c | |
parent | ca8eddc2759c949940720b5dc347e93bc981f5f2 (diff) |
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.c | 2 |
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; } |