/* Ethernet interface initialisation function Inits interface, sets interface link MAC address.  */
static void eth_cyclonev_iface_init(struct net_if *iface)
/* Ethernet interface initialisation function Inits interface, sets interface link MAC address.  */
static void eth_cyclonev_iface_init(struct net_if *iface)
{
	const struct device *dev = net_if_get_device(iface);
	const struct eth_cyclonev_config *config = dev->config;
	struct eth_cyclonev_priv *p = dev->data;
	p->iface = iface;
	ethernet_init(iface);
	net_if_set_link_addr(iface, p->mac_addr, sizeof(p->mac_addr), NET_LINK_ETHERNET);
	k_sem_init(&p->free_tx_descs, NB_TX_DESCS - 1, NB_TX_DESCS - 1);
	config->irq_config();
	p->initialised = 1;
	LOG_DBG("done");
}