bonding: print information about speed and duplex seen by the driver
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Wed, 6 Oct 2010 21:25:06 +0000 (14:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2010 21:25:06 +0000 (14:25 -0700)
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>
drivers/net/bonding/bond_main.c

index 6f5e6b453da69b0add1f1a51bc0a936d7b0a2500..e498ce3defad5ab9b5b26ce1d1217903f678d4fa 100644 (file)
@@ -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)