bonding: select current active slave when enslaving device for mode tlb and alb
[linux-2.6.git] / drivers / net / bonding / bond_main.c
index dce3cf9..9c326a5 100644 (file)
@@ -1714,6 +1714,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
        case BOND_MODE_ALB:
                new_slave->state = BOND_STATE_ACTIVE;
                bond_set_slave_inactive_flags(new_slave);
+               bond_select_active_slave(bond);
                break;
        default:
                pr_debug("This slave is always active in trunk mode\n");