diff options
author | Madalin Bucur <madalin.bucur@nxp.com> | 2018-02-26 11:24:02 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-27 11:40:03 -0500 |
commit | 81084b354782b56267b94415420b47e5aedd01cb (patch) | |
tree | 5c17c80d605f53b9e9b1899e4e2fdd5e55a28cdc /drivers/net/ethernet/freescale | |
parent | 120d75ecf043044554abbba8507f6d22e4715beb (diff) | |
download | op-kernel-dev-81084b354782b56267b94415420b47e5aedd01cb.zip op-kernel-dev-81084b354782b56267b94415420b47e5aedd01cb.tar.gz |
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 <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index ff110e6..bdf57fe 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -2204,14 +2204,8 @@ 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_rx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); + dpaa_eth_refill_bpools(priv); + dpaa_rx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); return qman_cb_dqrr_consume; } |