/* Transfer operational state from root to device. This is normally called when a stacking relationship exists between the root device and the device(a leaf device).  */
void netif_stacked_transfer_operstate(const struct net_device *rootdev, struct net_device *dev)
/* Transfer operational state from root to device. This is normally called when a stacking relationship exists between the root device and the device(a leaf device).  */
void netif_stacked_transfer_operstate(const struct net_device *rootdev, struct net_device *dev)
{
	if (rootdev->operstate == IF_OPER_DORMANT)
		netif_dormant_on(dev);
	else
		netif_dormant_off(dev);
	if (netif_carrier_ok(rootdev)) {
		if (!netif_carrier_ok(dev))
			netif_carrier_on(dev);
	} else {
		if (netif_carrier_ok(dev))
			netif_carrier_off(dev);
	}
}