Skip to content

Commit

Permalink
bonding: print information about speed and duplex seen by the driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ole2pl authored and davem330 committed Oct 6, 2010
1 parent 4f51573 commit 700c2a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2406,8 +2406,9 @@ static void bond_miimon_commit(struct bonding *bond)
slave->state = BOND_STATE_BACKUP;
}

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

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

0 comments on commit 700c2a7

Please sign in to comment.