bonding: fix link down handling in 802.3ad mode
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 15 May 2009 08:44:32 +0000 (08:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 04:15:54 +0000 (21:15 -0700)
commit4cd6fe1c6483cde93e2ec91f58b7af9c9eea51ad
treec50f35af42e89e72a3c37847dffe3b25d3fdc60c
parentffc7a8649426f666818b63915b0f43fdf1757242
bonding: fix link down handling in 802.3ad mode

One of the purposes of bonding is to allow for redundant links, and failover
correctly if the cable is pulled. If all the members of a bonded device have
no carrier present, the bonded device itself needs to report no carrier present
to user space so management tools (like routing daemons) can respond.

Bonding in 802.3ad mode does not work correctly for this because it incorrectly
chooses a link that is down as a possible aggregator.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c