/* this routine checks for available ethernet frames that the network interface might have received, and notifies the network stack  */
static int mcs7830_recv(struct eth_device *eth)
/* this routine checks for available ethernet frames that the network interface might have received, and notifies the network stack  */
static int mcs7830_recv(struct eth_device *eth)
{
	ALLOC_CACHE_ALIGN_BUFFER(uint8_t, buf, MCS7830_RX_URB_SIZE);
	struct ueth_data *ueth = eth->priv;
	int len;
	len = mcs7830_recv_common(ueth, buf);
	if (len >= 0) {
		net_process_received_packet(buf, len);
		return 0;
	}
	return len;
}