From: Krzysztof Oledzki Date: Thu, 30 Sep 2010 06:19:04 +0000 (+0000) Subject: bonding: add Speed/Duplex information to /proc/net/bonding/bond X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd53df265b1ee7a1fbbc76bb62c3bec2383bbd44;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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, seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); seq_printf(seq, "MII Status: %s\n", (slave->link == BOND_LINK_UP) ? "up" : "down"); + seq_printf(seq, "Speed: %d Mbps\n", slave->speed); + seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half"); seq_printf(seq, "Link Failure Count: %u\n", slave->link_failure_count);