/* Return egress device or NULL if the egress device isn't one of our ports.  */
static struct net_device* cxgb3_egress_dev(struct net_device *root_dev, struct s3_conn *c3cn, int context)
/* Return egress device or NULL if the egress device isn't one of our ports.  */
static struct net_device* cxgb3_egress_dev(struct net_device *root_dev, struct s3_conn *c3cn, int context)
{
	while (root_dev) {
		if (root_dev->priv_flags & IFF_802_1Q_VLAN)
			root_dev = vlan_dev_real_dev(root_dev);
		else if (is_cxgb3_dev(root_dev))
			return root_dev;
		else
			return NULL;
	}
	return NULL;
}