Message ID | 1300140321-12056-1-git-send-email-andy@greyhouse.net |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Andy Gospodarek <andy@greyhouse.net> Date: Mon, 14 Mar 2011 18:05:21 -0400 > Only slaves that are up should transmit netpoll frames, so there is no > need to check to see if a slave is up before enabling netpoll on it. > This resolves a reported failure on active-backup bonds where a slave > interface is down when netpoll was enabled. > > Signed-off-by: Andy Gospodarek <andy@greyhouse.net> > Tested-by: WANG Cong <amwang@redhat.com> Applied, thanks Andy. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 7b7ca97..b14c377 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1352,8 +1352,6 @@ static int bond_netpoll_setup(struct net_device *dev, struct netpoll_info *ni) read_lock(&bond->lock); bond_for_each_slave(bond, slave, i) { - if (!IS_UP(slave->dev)) - continue; err = slave_enable_netpoll(slave); if (err) { __bond_netpoll_cleanup(bond);