Lines Matching refs:agg
143 struct aggregator *agg; in __get_first_agg() local
151 agg = first_slave ? &(SLAVE_AD_INFO(first_slave)->aggregator) : NULL; in __get_first_agg()
154 return agg; in __get_first_agg()
164 static inline int __agg_has_partner(struct aggregator *agg) in __agg_has_partner() argument
166 return !is_zero_ether_addr(agg->partner_system.mac_addr_value); in __agg_has_partner()
668 static int __agg_active_ports(struct aggregator *agg) in __agg_active_ports() argument
673 for (port = agg->lag_ports; port; in __agg_active_ports()
1610 static int agg_device_up(const struct aggregator *agg) in agg_device_up() argument
1612 struct port *port = agg->lag_ports; in agg_device_up()
1617 for (port = agg->lag_ports; port; in agg_device_up()
1653 static void ad_agg_selection_logic(struct aggregator *agg, in ad_agg_selection_logic() argument
1657 struct bonding *bond = agg->slave->bond; in ad_agg_selection_logic()
1663 origin = agg; in ad_agg_selection_logic()
1664 active = __get_active_agg(agg); in ad_agg_selection_logic()
1668 agg = &(SLAVE_AD_INFO(slave)->aggregator); in ad_agg_selection_logic()
1670 agg->is_active = 0; in ad_agg_selection_logic()
1672 if (__agg_active_ports(agg) && agg_device_up(agg)) in ad_agg_selection_logic()
1673 best = ad_agg_selection_test(best, agg); in ad_agg_selection_logic()
1714 agg = &(SLAVE_AD_INFO(slave)->aggregator); in ad_agg_selection_logic()
1717 agg->aggregator_identifier, agg->num_of_ports, in ad_agg_selection_logic()
1718 agg->actor_oper_aggregator_key, in ad_agg_selection_logic()
1719 agg->partner_oper_aggregator_key, in ad_agg_selection_logic()
1720 agg->is_individual, agg->is_active); in ad_agg_selection_logic()
2510 struct aggregator *agg; in bond_3ad_handle_link_change() local
2538 agg = __get_first_agg(port); in bond_3ad_handle_link_change()
2539 ad_agg_selection_logic(agg, &dummy); in bond_3ad_handle_link_change()