diff options
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 5a673725471c..b211486a0ca3 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -419,8 +419,10 @@ static void rlb_teach_disabled_mac_on_primary(struct bonding *bond, u8 addr[]) | |||
419 | } | 419 | } |
420 | 420 | ||
421 | if (!bond->alb_info.primary_is_promisc) { | 421 | if (!bond->alb_info.primary_is_promisc) { |
422 | bond->alb_info.primary_is_promisc = 1; | 422 | if (!dev_set_promiscuity(bond->curr_active_slave->dev, 1)) |
423 | dev_set_promiscuity(bond->curr_active_slave->dev, 1); | 423 | bond->alb_info.primary_is_promisc = 1; |
424 | else | ||
425 | bond->alb_info.primary_is_promisc = 0; | ||
424 | } | 426 | } |
425 | 427 | ||
426 | bond->alb_info.rlb_promisc_timeout_counter = 0; | 428 | bond->alb_info.rlb_promisc_timeout_counter = 0; |