/* Called by bond_set_carrier(). Return zero if carrier state does not change, nonzero if it does.  */
int bond_3ad_set_carrier(struct bonding *bond)
/* Called by bond_set_carrier(). Return zero if carrier state does not change, nonzero if it does.  */
int bond_3ad_set_carrier(struct bonding *bond)
{
	if (__get_active_agg(&(SLAVE_AD_INFO(bond->first_slave).aggregator))) {
		if (!netif_carrier_ok(bond->dev)) {
			netif_carrier_on(bond->dev);
			return 1;
		}
		return 0;
	}
	if (netif_carrier_ok(bond->dev)) {
		netif_carrier_off(bond->dev);
		return 1;
	}
	return 0;
}