Lines Matching defs:agg

144 	struct aggregator *agg;
152 agg = first_slave ? &(SLAVE_AD_INFO(first_slave)->aggregator) : NULL;
155 return agg;
160 * @agg: the agregator we're looking at
165 static inline int __agg_has_partner(struct aggregator *agg)
167 return !is_zero_ether_addr(agg->partner_system.mac_addr_value);
669 static int __agg_active_ports(struct aggregator *agg)
674 for (port = agg->lag_ports; port;
1539 /* Decide if "agg" is a better choice for the new active aggregator that
1547 * 1. If the current agg is not individual, and the best is
1550 * 2. If current agg is individual and the best is not, keep best.
1555 * 3a. If current agg partner replied, and best agg partner did not,
1558 * 3b. If current agg partner did not reply and best agg partner
1601 net_warn_ratelimited("%s: (slave %s): Impossible agg select mode %d\n",
1611 static int agg_device_up(const struct aggregator *agg)
1613 struct port *port = agg->lag_ports;
1618 for (port = agg->lag_ports; port;
1630 * @agg: the aggregator we're looking at
1650 * FIXME: this function MUST be called with the first agg in the bond, or
1652 * called with the bond itself, and retrieve the first agg from it.
1654 static void ad_agg_selection_logic(struct aggregator *agg,
1658 struct bonding *bond = agg->slave->bond;
1664 origin = agg;
1665 active = __get_active_agg(agg);
1669 agg = &(SLAVE_AD_INFO(slave)->aggregator);
1671 agg->is_active = 0;
1673 if (__agg_active_ports(agg) && agg_device_up(agg))
1674 best = ad_agg_selection_test(best, agg);
1715 agg = &(SLAVE_AD_INFO(slave)->aggregator);
1718 agg->aggregator_identifier, agg->num_of_ports,
1719 agg->actor_oper_aggregator_key,
1720 agg->partner_oper_aggregator_key,
1721 agg->is_individual, agg->is_active);
1974 * Set the aggregation selection timer, to initiate an agg selection in
2527 struct aggregator *agg;
2555 agg = __get_first_agg(port);
2556 ad_agg_selection_logic(agg, &dummy);