Lines Matching defs:active

192  * __port_is_enabled - check if the port's slave is in active state
672 int active = 0;
677 active++;
680 return active;
745 * __get_active_agg - get the current active aggregator
1002 * port in an active aggregator is enabled
1539 /* Decide if "agg" is a better choice for the new active aggregator that
1639 * it, and to reselect the active aggregator only if the previous
1657 struct aggregator *best, *active, *origin;
1665 active = __get_active_agg(agg);
1666 best = (active && agg_device_up(active)) ? active : NULL;
1679 /* For the STABLE policy, don't replace the old active
1680 * aggregator if it's still active (it has an answering
1681 * partner) or if both the best and active don't have an
1684 if (active && active->lag_ports &&
1685 __agg_active_ports(active) &&
1686 (__agg_has_partner(active) ||
1687 (!__agg_has_partner(active) &&
1689 if (!(!active->actor_oper_aggregator_key &&
1692 active->is_active = 1;
1697 if (best && (best == active)) {
1699 active->is_active = 1;
1730 netdev_dbg(bond->dev, "(slave %s): LAG %d chosen as the active LAG\n",
1743 if (active) {
1744 for (port = active->lag_ports; port;
1756 active = __get_active_agg(origin);
1758 if (active) {
1759 if (!__agg_has_partner(active)) {
1760 for (port = active->lag_ports; port;
1884 * Enable @port if it's in an active aggregator
2136 slave_info(bond->dev, slave->dev, "Removing an active aggregator\n");
2176 slave_info(bond->dev, slave->dev, "Removing an active aggregator\n");
2177 /* select new active aggregator */
2210 slave_info(bond->dev, slave->dev, "Removing an active aggregator\n");
2211 /* select new active aggregator */
2291 * related to any aggregator, and selects the active aggregator for a bond.
2319 /* select the active aggregator for the bond */
2574 * if we have an active aggregator, we're up, if not, we're down.
2575 * Presumes that we cannot have an active aggregator if there are
2585 struct aggregator *active;
2595 active = __get_active_agg(&(SLAVE_AD_INFO(first_slave)->aggregator));
2596 if (active) {
2598 if (__agg_active_ports(active) < bond->params.min_links) {
2616 * __bond_3ad_get_active_agg_info - get information of the active aggregator