Lines Matching refs:best

1473 static struct aggregator *ad_agg_selection_test(struct aggregator *best,  in ad_agg_selection_test()  argument
1500 if (!best) in ad_agg_selection_test()
1503 if (!curr->is_individual && best->is_individual) in ad_agg_selection_test()
1506 if (curr->is_individual && !best->is_individual) in ad_agg_selection_test()
1507 return best; in ad_agg_selection_test()
1509 if (__agg_has_partner(curr) && !__agg_has_partner(best)) in ad_agg_selection_test()
1512 if (!__agg_has_partner(curr) && __agg_has_partner(best)) in ad_agg_selection_test()
1513 return best; in ad_agg_selection_test()
1517 if (curr->num_of_ports > best->num_of_ports) in ad_agg_selection_test()
1520 if (curr->num_of_ports < best->num_of_ports) in ad_agg_selection_test()
1521 return best; in ad_agg_selection_test()
1526 if (__get_agg_bandwidth(curr) > __get_agg_bandwidth(best)) in ad_agg_selection_test()
1538 return best; in ad_agg_selection_test()
1581 struct aggregator *best, *active, *origin; in ad_agg_selection_logic() local
1590 best = (active && agg_device_up(active)) ? active : NULL; in ad_agg_selection_logic()
1598 best = ad_agg_selection_test(best, agg); in ad_agg_selection_logic()
1601 if (best && in ad_agg_selection_logic()
1602 __get_agg_selection_mode(best->lag_ports) == BOND_AD_STABLE) { in ad_agg_selection_logic()
1612 !__agg_has_partner(best)))) { in ad_agg_selection_logic()
1614 best->actor_oper_aggregator_key)) { in ad_agg_selection_logic()
1615 best = NULL; in ad_agg_selection_logic()
1621 if (best && (best == active)) { in ad_agg_selection_logic()
1622 best = NULL; in ad_agg_selection_logic()
1627 if (best) { in ad_agg_selection_logic()
1629 best->aggregator_identifier, best->num_of_ports, in ad_agg_selection_logic()
1630 best->actor_oper_aggregator_key, in ad_agg_selection_logic()
1631 best->partner_oper_aggregator_key, in ad_agg_selection_logic()
1632 best->is_individual, best->is_active); in ad_agg_selection_logic()
1634 best->lag_ports, best->slave, in ad_agg_selection_logic()
1635 best->slave ? best->slave->dev->name : "NULL"); in ad_agg_selection_logic()
1648 if (best->is_individual) { in ad_agg_selection_logic()
1650 best->slave ? in ad_agg_selection_logic()
1651 best->slave->bond->dev->name : "NULL"); in ad_agg_selection_logic()
1654 best->is_active = 1; in ad_agg_selection_logic()
1656 best->aggregator_identifier); in ad_agg_selection_logic()
1658 best->aggregator_identifier, best->num_of_ports, in ad_agg_selection_logic()
1659 best->actor_oper_aggregator_key, in ad_agg_selection_logic()
1660 best->partner_oper_aggregator_key, in ad_agg_selection_logic()
1661 best->is_individual, best->is_active); in ad_agg_selection_logic()