diff options
author | Krzysztof Oledzki <ole@ans.pl> | 2010-09-30 02:19:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 21:43:34 -0400 |
commit | dd53df265b1ee7a1fbbc76bb62c3bec2383bbd44 (patch) | |
tree | 33bf0fc60aafea1363ec89cdb756b93414419130 | |
parent | 767e97e1e0db0d0f3152cd2f3bd3403596aedbad (diff) |
bonding: add Speed/Duplex information to /proc/net/bonding/bond
Effect:
Slave Interface: eth5
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: XX:XX:XX:XX:XX:XX
Slave queue ID: 0
Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index d5004826d19e..a0bf35d0d4f5 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -3353,6 +3353,8 @@ static void bond_info_show_slave(struct seq_file *seq, | |||
3353 | seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); | 3353 | seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); |
3354 | seq_printf(seq, "MII Status: %s\n", | 3354 | seq_printf(seq, "MII Status: %s\n", |
3355 | (slave->link == BOND_LINK_UP) ? "up" : "down"); | 3355 | (slave->link == BOND_LINK_UP) ? "up" : "down"); |
3356 | seq_printf(seq, "Speed: %d Mbps\n", slave->speed); | ||
3357 | seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half"); | ||
3356 | seq_printf(seq, "Link Failure Count: %u\n", | 3358 | seq_printf(seq, "Link Failure Count: %u\n", |
3357 | slave->link_failure_count); | 3359 | slave->link_failure_count); |
3358 | 3360 | ||