/* stmmac_poll - stmmac poll method (NAPI) @napi : pointer to the napi structure. @budget : maximum number of packets that the current CPU can receive from all interfaces. Description : This function implements the the reception process. Also it runs the TX completion thread  */
static int stmmac_poll(struct napi_struct *napi, int budget)
/* stmmac_poll - stmmac poll method (NAPI) @napi : pointer to the napi structure. @budget : maximum number of packets that the current CPU can receive from all interfaces. Description : This function implements the the reception process. Also it runs the TX completion thread  */
static int stmmac_poll(struct napi_struct *napi, int budget)
{
	struct stmmac_priv *priv = container_of(napi, struct stmmac_priv, napi);
	int work_done = 0;
	priv->xstats.poll_n++;
	stmmac_tx(priv);
	work_done = stmmac_rx(priv, budget);
	if (work_done < budget) {
		napi_complete(napi);
		stmmac_enable_irq(priv);
	}
	return work_done;
}