Skip to content

Commit

Permalink
net: report right mtu value in error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed Oct 17, 2016
1 parent ca8eddc commit a0e65de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a0e65de

Please sign in to comment.