diff options
-rw-r--r-- | drivers/net/bonding/bond_main.c | 11 | ||||
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 6287ffbda7f7..2bb70e052090 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -1390,6 +1390,11 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev) | |||
1390 | goto err_free; | 1390 | goto err_free; |
1391 | } | 1391 | } |
1392 | 1392 | ||
1393 | res = netdev_set_master(slave_dev, bond_dev); | ||
1394 | if (res) { | ||
1395 | dprintk("Error %d calling netdev_set_master\n", res); | ||
1396 | goto err_close; | ||
1397 | } | ||
1393 | /* open the slave since the application closed it */ | 1398 | /* open the slave since the application closed it */ |
1394 | res = dev_open(slave_dev); | 1399 | res = dev_open(slave_dev); |
1395 | if (res) { | 1400 | if (res) { |
@@ -1397,12 +1402,6 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev) | |||
1397 | goto err_restore_mac; | 1402 | goto err_restore_mac; |
1398 | } | 1403 | } |
1399 | 1404 | ||
1400 | res = netdev_set_master(slave_dev, bond_dev); | ||
1401 | if (res) { | ||
1402 | dprintk("Error %d calling netdev_set_master\n", res); | ||
1403 | goto err_close; | ||
1404 | } | ||
1405 | |||
1406 | new_slave->dev = slave_dev; | 1405 | new_slave->dev = slave_dev; |
1407 | slave_dev->priv_flags |= IFF_BONDING; | 1406 | slave_dev->priv_flags |= IFF_BONDING; |
1408 | 1407 | ||
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index f96ed76d8fa4..79b79f3de24c 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -2268,6 +2268,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, | |||
2268 | break; | 2268 | break; |
2269 | case NETDEV_UP: | 2269 | case NETDEV_UP: |
2270 | case NETDEV_CHANGE: | 2270 | case NETDEV_CHANGE: |
2271 | if (dev->flags & IFF_SLAVE) | ||
2272 | break; | ||
2273 | |||
2271 | if (event == NETDEV_UP) { | 2274 | if (event == NETDEV_UP) { |
2272 | if (!netif_carrier_ok(dev)) { | 2275 | if (!netif_carrier_ok(dev)) { |
2273 | /* device is not ready yet. */ | 2276 | /* device is not ready yet. */ |