mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
bonding: warn user when 802.3ad speed is unknown
Goal is to advertise the user when ethtool speeds and 802.3ad speeds are desynchronized. When this case happens, the kernel needs to be patched. Suggested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
10d486a30c
commit
cd99c37763
1 changed files with 5 additions and 0 deletions
|
@ -322,6 +322,11 @@ static u16 __get_link_speed(struct port *port)
|
|||
|
||||
default:
|
||||
/* unknown speed value from ethtool. shouldn't happen */
|
||||
if (slave->speed != SPEED_UNKNOWN)
|
||||
pr_warn_once("%s: unknown ethtool speed (%d) for port %d (set it to 0)\n",
|
||||
slave->bond->dev->name,
|
||||
slave->speed,
|
||||
port->actor_port_number);
|
||||
speed = 0;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue