bonding: show all the link status of slaves
authorAmerigo Wang <[email protected]>
Thu, 14 Jun 2012 22:39:27 +0000 (22:39 +0000)
committerDavid S. Miller <[email protected]>
Sun, 17 Jun 2012 23:23:54 +0000 (16:23 -0700)
commitdf2bcc4af2616b18efeaa3d044fe15ce891c5d21
tree259e98cfa15e68a3bdf9b03e06b97214577a1c83
parent86a2f415e6cdc5dbb2163b31abf4d36f26f7e3da
bonding: show all the link status of slaves

There are four link statuses of a bonding slave, the procfs
code shows a wrong status when using downdelay/updelay:

(slave->link == BOND_LINK_UP) ?  "up" : "down"

It doesn't respect the rest two statuses. This patch fixes it.

Cc: Jay Vosburgh <[email protected]>
Cc: Andy Gospodarek <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/bonding/bond_procfs.c