Home
last modified time | relevance | path

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

/linux/drivers/net/bonding/
H A Dbond_alb.c360 struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); in rlb_teach_disabled_mac_on_primary() local
362 if (!curr_active) in rlb_teach_disabled_mac_on_primary()
366 if (!dev_set_promiscuity(curr_active->dev, 1)) in rlb_teach_disabled_mac_on_primary()
374 alb_send_learning_packets(curr_active, addr, true); in rlb_teach_disabled_mac_on_primary()
1720 struct slave *curr_active; in bond_alb_handle_active_change() local
1722 curr_active = rtnl_dereference(bond->curr_active_slave); in bond_alb_handle_active_change()
1723 if (curr_active == new_slave) in bond_alb_handle_active_change()
1726 if (curr_active && bond->alb_info.primary_is_promisc) { in bond_alb_handle_active_change()
1727 dev_set_promiscuity(curr_active->dev, -1); in bond_alb_handle_active_change()
1732 swap_slave = curr_active; in bond_alb_handle_active_change()
[all …]
H A Dbond_main.c918 struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); in bond_set_promiscuity() local
920 if (curr_active) in bond_set_promiscuity()
921 err = dev_set_promiscuity(curr_active->dev, inc); in bond_set_promiscuity()
941 struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); in bond_set_allmulti() local
943 if (curr_active) in bond_set_allmulti()
944 err = dev_set_allmulti(curr_active->dev, inc); in bond_set_allmulti()