Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81084b35 authored by Madalin Bucur's avatar Madalin Bucur Committed by David S. Miller
Browse files

dpaa_eth: make sure all Rx errors are counted



Simplify the code and avoid some Rx errors not being
accounted.

Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 120d75ec
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -2204,13 +2204,7 @@ static enum qman_cb_dqrr_result rx_error_dqrr(struct qman_portal *portal,
	if (dpaa_eth_napi_schedule(percpu_priv, portal))
		return qman_cb_dqrr_stop;

	if (dpaa_eth_refill_bpools(priv))
		/* Unable to refill the buffer pool due to insufficient
		 * system memory. Just release the frame back into the pool,
		 * otherwise we'll soon end up with an empty buffer pool.
		 */
		dpaa_fd_release(net_dev, &dq->fd);
	else
	dpaa_eth_refill_bpools(priv);
	dpaa_rx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid);

	return qman_cb_dqrr_consume;