[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1497015283-1729-1-git-send-email-nicolas.dichtel@6wind.com>
Date: Fri, 9 Jun 2017 15:34:43 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, j.vosburgh@...il.com, vfalico@...il.com,
andy@...yhouse.net, thibaut.collet@...nd.com,
linville@...driver.com, Nicolas Dichtel <nicolas.dichtel@...nd.com>
Subject: [PATCH net-next] bonding: warn user when 802.3ad speed is unknown
Make it explicit in the log.
Suggested-by: Andrew Lunn <andrew@...n.ch>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
---
drivers/net/bonding/bond_3ad.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
index b44a6aeb346d..b15b177662b0 100644
--- a/drivers/net/bonding/bond_3ad.c
+++ b/drivers/net/bonding/bond_3ad.c
@@ -322,6 +322,9 @@ static u16 __get_link_speed(struct port *port)
default:
/* unknown speed value from ethtool. shouldn't happen */
+ pr_warn("%s: unknown speed (%d) for port %d (set it to 0)\n",
+ slave->bond->dev->name, slave->speed,
+ port->actor_port_number);
speed = 0;
break;
}
--
2.8.1
Powered by blists - more mailing lists