Skip to content

Commit 81084b3

Browse files
madalinbucurdavem330
authored andcommitted
dpaa_eth: make sure all Rx errors are counted
Simplify the code and avoid some Rx errors not being accounted. Signed-off-by: Madalin Bucur <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 120d75e commit 81084b3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,14 +2204,8 @@ static enum qman_cb_dqrr_result rx_error_dqrr(struct qman_portal *portal,
22042204
if (dpaa_eth_napi_schedule(percpu_priv, portal))
22052205
return qman_cb_dqrr_stop;
22062206

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

22162210
return qman_cb_dqrr_consume;
22172211
}

0 commit comments

Comments
 (0)