/* Check whether a provided iface uses the provided L2.  */
static bool iface_uses_l2(struct net_if *iface, const struct net_l2 *l2)
/* Check whether a provided iface uses the provided L2.  */
static bool iface_uses_l2(struct net_if *iface, const struct net_l2 *l2)
{
	return	(!l2 && net_if_offload(iface)) ||
		(net_if_l2(iface) == l2);
}