/* RECEIVE HANDLING CODE - ingress (ETH -> DSA slave ports)  */
static int dsa_check_iface(struct net_if *iface)
/* RECEIVE HANDLING CODE - ingress (ETH -> DSA slave ports)  */
static int dsa_check_iface(struct net_if *iface)
{
	if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) {
		return -ENOENT;
	}
	if (!((net_eth_get_hw_capabilities(iface) & ETHERNET_DSA_MASTER_PORT) ||
	    (net_eth_get_hw_capabilities(iface) & ETHERNET_DSA_SLAVE_PORT))) {
		return -ESRCH;
	}
	return 0;
}