• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/bonding/

Lines Matching defs:agg

219 static inline int __agg_has_partner(struct aggregator *agg)
221 return !is_zero_ether_addr(agg->partner_system.mac_addr_value);
1414 * Decide if "agg" is a better choice for the new active aggregator that
1423 * 1. If the current agg is not individual, and the best is
1426 * 2. If current agg is individual and the best is not, keep best.
1431 * 3a. If current agg partner replied, and best agg partner did not,
1434 * 3b. If current agg partner did not reply and best agg partner
1477 pr_warning("%s: Impossible agg select mode %d\n",
1486 static int agg_device_up(const struct aggregator *agg)
1488 return (netif_running(agg->slave->dev) &&
1489 netif_carrier_ok(agg->slave->dev));
1492 static void ad_agg_selection_logic(struct aggregator *agg)
1497 origin = agg;
1498 active = __get_active_agg(agg);
1502 agg->is_active = 0;
1504 if (agg->num_of_ports && agg_device_up(agg))
1505 best = ad_agg_selection_test(best, agg);
1507 } while ((agg = __get_next_agg(agg)));
1545 for (agg = __get_first_agg(best->lag_ports); agg;
1546 agg = __get_next_agg(agg)) {
1549 agg->aggregator_identifier, agg->num_of_ports,
1550 agg->actor_oper_aggregator_key,
1551 agg->partner_oper_aggregator_key,
1552 agg->is_individual, agg->is_active);
1792 * Set the aggregation selection timer, to initiate an agg selection in
2356 struct aggregator *agg = SLAVE_AD_INFO(slave).port.aggregator;
2358 if (agg && (agg->aggregator_identifier == agg_id)) {
2376 struct aggregator *agg = SLAVE_AD_INFO(slave).port.aggregator;
2378 if (agg) {
2379 slave_agg_id = agg->aggregator_identifier;
2382 if (SLAVE_IS_OK(slave) && agg && (slave_agg_id == agg_id)) {