Skip to content

Commit 700c2a7

Browse files
ole2pldavem330
authored andcommitted
bonding: print information about speed and duplex seen by the driver
before: bonding: bond0: link status definitely up for interface eth5 bonding: bond0: link status definitely up for interface eth0 after: bonding: bond0: link status definitely up for interface eth5, 100 Mbps full duplex. bonding: bond0: link status definitely up for interface eth0, 100 Mbps full duplex. Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4f51573 commit 700c2a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,8 +2406,9 @@ static void bond_miimon_commit(struct bonding *bond)
24062406
slave->state = BOND_STATE_BACKUP;
24072407
}
24082408

2409-
pr_info("%s: link status definitely up for interface %s.\n",
2410-
bond->dev->name, slave->dev->name);
2409+
pr_info("%s: link status definitely up for interface %s, %d Mbps %s duplex.\n",
2410+
bond->dev->name, slave->dev->name,
2411+
slave->speed, slave->duplex ? "full" : "half");
24112412

24122413
/* notify ad that the link status has changed */
24132414
if (bond->params.mode == BOND_MODE_8023AD)

0 commit comments

Comments
 (0)