Skip to content

Commit cd99c37

Browse files
NicolasDichteldavem330
authored andcommitted
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>
1 parent 10d486a commit cd99c37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/bonding/bond_3ad.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ static u16 __get_link_speed(struct port *port)
322322

323323
default:
324324
/* unknown speed value from ethtool. shouldn't happen */
325+
if (slave->speed != SPEED_UNKNOWN)
326+
pr_warn_once("%s: unknown ethtool speed (%d) for port %d (set it to 0)\n",
327+
slave->bond->dev->name,
328+
slave->speed,
329+
port->actor_port_number);
325330
speed = 0;
326331
break;
327332
}

0 commit comments

Comments
 (0)