/* __agg_ports_are_ready - check if all ports in an aggregator are ready @aggregator: the aggregator we're looking at  */
static int __agg_ports_are_ready(struct aggregator *aggregator)
/* __agg_ports_are_ready - check if all ports in an aggregator are ready @aggregator: the aggregator we're looking at  */
static int __agg_ports_are_ready(struct aggregator *aggregator)
{
	struct port *port;
	int retval = 1;
	if (aggregator) {
		for (port=aggregator->lag_ports; port; port=port->next_port_in_aggregator) {
			if (!(port->sm_vars & AD_PORT_READY_N)) {
				retval = 0;
				break;
			}
		}
	}
	return retval;
}