[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1476723742-7557-1-git-send-email-jakub.kicinski@netronome.com>
Date: Mon, 17 Oct 2016 18:02:22 +0100
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: netdev@...r.kernel.org
Cc: jarod@...hat.com, Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH net-next] 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@...ronome.com>
---
net/core/dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
1.9.1
Powered by blists - more mailing lists