Lines Matching refs:best

1472 static struct aggregator *ad_agg_selection_test(struct aggregator *best,  in ad_agg_selection_test()  argument
1499 if (!best) in ad_agg_selection_test()
1502 if (!curr->is_individual && best->is_individual) in ad_agg_selection_test()
1505 if (curr->is_individual && !best->is_individual) in ad_agg_selection_test()
1506 return best; in ad_agg_selection_test()
1508 if (__agg_has_partner(curr) && !__agg_has_partner(best)) in ad_agg_selection_test()
1511 if (!__agg_has_partner(curr) && __agg_has_partner(best)) in ad_agg_selection_test()
1512 return best; in ad_agg_selection_test()
1516 if (curr->num_of_ports > best->num_of_ports) in ad_agg_selection_test()
1519 if (curr->num_of_ports < best->num_of_ports) in ad_agg_selection_test()
1520 return best; in ad_agg_selection_test()
1525 if (__get_agg_bandwidth(curr) > __get_agg_bandwidth(best)) in ad_agg_selection_test()
1537 return best; in ad_agg_selection_test()
1580 struct aggregator *best, *active, *origin; in ad_agg_selection_logic() local
1589 best = (active && agg_device_up(active)) ? active : NULL; in ad_agg_selection_logic()
1597 best = ad_agg_selection_test(best, agg); in ad_agg_selection_logic()
1600 if (best && in ad_agg_selection_logic()
1601 __get_agg_selection_mode(best->lag_ports) == BOND_AD_STABLE) { in ad_agg_selection_logic()
1611 !__agg_has_partner(best)))) { in ad_agg_selection_logic()
1613 best->actor_oper_aggregator_key)) { in ad_agg_selection_logic()
1614 best = NULL; in ad_agg_selection_logic()
1620 if (best && (best == active)) { in ad_agg_selection_logic()
1621 best = NULL; in ad_agg_selection_logic()
1626 if (best) { in ad_agg_selection_logic()
1628 best->aggregator_identifier, best->num_of_ports, in ad_agg_selection_logic()
1629 best->actor_oper_aggregator_key, in ad_agg_selection_logic()
1630 best->partner_oper_aggregator_key, in ad_agg_selection_logic()
1631 best->is_individual, best->is_active); in ad_agg_selection_logic()
1633 best->lag_ports, best->slave, in ad_agg_selection_logic()
1634 best->slave ? best->slave->dev->name : "NULL"); in ad_agg_selection_logic()
1647 if (best->is_individual) { in ad_agg_selection_logic()
1649 best->slave ? in ad_agg_selection_logic()
1650 best->slave->bond->dev->name : "NULL"); in ad_agg_selection_logic()
1653 best->is_active = 1; in ad_agg_selection_logic()
1655 best->aggregator_identifier); in ad_agg_selection_logic()
1657 best->aggregator_identifier, best->num_of_ports, in ad_agg_selection_logic()
1658 best->actor_oper_aggregator_key, in ad_agg_selection_logic()
1659 best->partner_oper_aggregator_key, in ad_agg_selection_logic()
1660 best->is_individual, best->is_active); in ad_agg_selection_logic()