Commit a0e65de7 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

net: report right mtu value in error message

Check is for max_mtu but message reports min_mtu.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca8eddc2
...@@ -6372,7 +6372,7 @@ int dev_set_mtu(struct net_device *dev, int new_mtu) ...@@ -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) { if (dev->max_mtu > 0 && new_mtu > dev->max_mtu) {
net_err_ratelimited("%s: Invalid MTU %d requested, hw max %d\n", 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; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment