diff options
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 5b4af3cc2a44..2db2d057ccd0 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -1189,21 +1189,19 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active) | |||
1189 | 1189 | ||
1190 | if (new_active) { | 1190 | if (new_active) { |
1191 | bond_set_slave_active_flags(new_active); | 1191 | bond_set_slave_active_flags(new_active); |
1192 | } | ||
1193 | 1192 | ||
1194 | if (new_active && bond->params.fail_over_mac) | 1193 | if (bond->params.fail_over_mac) |
1195 | bond_do_fail_over_mac(bond, new_active, old_active); | 1194 | bond_do_fail_over_mac(bond, new_active, |
1195 | old_active); | ||
1196 | 1196 | ||
1197 | bond->send_grat_arp = bond->params.num_grat_arp; | 1197 | bond->send_grat_arp = bond->params.num_grat_arp; |
1198 | if (bond->curr_active_slave && | 1198 | if (!test_bit(__LINK_STATE_LINKWATCH_PENDING, |
1199 | test_bit(__LINK_STATE_LINKWATCH_PENDING, | ||
1200 | &bond->curr_active_slave->dev->state)) { | 1199 | &bond->curr_active_slave->dev->state)) { |
1201 | dprintk("delaying gratuitous arp on %s\n", | ||
1202 | bond->curr_active_slave->dev->name); | ||
1203 | } else { | ||
1204 | if (bond->send_grat_arp > 0) { | ||
1205 | bond_send_gratuitous_arp(bond); | 1200 | bond_send_gratuitous_arp(bond); |
1206 | bond->send_grat_arp--; | 1201 | bond->send_grat_arp--; |
1202 | } else { | ||
1203 | dprintk("delaying gratuitous arp on %s\n", | ||
1204 | bond->curr_active_slave->dev->name); | ||
1207 | } | 1205 | } |
1208 | } | 1206 | } |
1209 | } | 1207 | } |