Home
last modified time | relevance | path

Searched refs:curr_active (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/net/bonding/
Dbond_alb.c363 struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); in rlb_teach_disabled_mac_on_primary() local
365 if (!curr_active) in rlb_teach_disabled_mac_on_primary()
369 if (!dev_set_promiscuity(curr_active->dev, 1)) in rlb_teach_disabled_mac_on_primary()
377 alb_send_learning_packets(curr_active, addr, true); in rlb_teach_disabled_mac_on_primary()
1673 struct slave *curr_active; in bond_alb_handle_active_change() local
1675 curr_active = rtnl_dereference(bond->curr_active_slave); in bond_alb_handle_active_change()
1676 if (curr_active == new_slave) in bond_alb_handle_active_change()
1679 if (curr_active && bond->alb_info.primary_is_promisc) { in bond_alb_handle_active_change()
1680 dev_set_promiscuity(curr_active->dev, -1); in bond_alb_handle_active_change()
1685 swap_slave = curr_active; in bond_alb_handle_active_change()
[all …]
Dbond_main.c491 struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); in bond_set_promiscuity() local
493 if (curr_active) in bond_set_promiscuity()
494 err = dev_set_promiscuity(curr_active->dev, inc); in bond_set_promiscuity()
514 struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); in bond_set_allmulti() local
516 if (curr_active) in bond_set_allmulti()
517 err = dev_set_allmulti(curr_active->dev, inc); in bond_set_allmulti()