]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: show all the link status of slaves
authorAmerigo Wang <amwang@redhat.com>
Thu, 14 Jun 2012 22:39:27 +0000 (22:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jun 2012 23:23:54 +0000 (16:23 -0700)
commita006f92aad268b135db9e1b51510783f3ba8b6dc
tree259e98cfa15e68a3bdf9b03e06b97214577a1c83
parent82ab018d59eb19ee808584639afaa0eba0111768
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 <fubar@us.ibm.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_procfs.c