mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
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>
This commit is contained in:
parent
ca8eddc275
commit
a0e65de715
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue