From: Sunil Goutham Date: Wed, 25 Mar 2020 11:41:16 +0000 (+0530) Subject: octeontx2-pf: Fix rx buffer page refcount X-Git-Tag: block-5.7-2020-04-09~9^2~77^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e88b288ec2bfb96997e56e4b63c50af4e6fe7736;p=linux-block.git octeontx2-pf: Fix rx buffer page refcount Fixed an issue wherein while refilling receive buffers for the last page allocated, recount is not being updated. Signed-off-by: Sunil Goutham Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c index 94044a5c01e7..45abe0cd0e7b 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c @@ -304,6 +304,7 @@ static int otx2_rx_napi_handler(struct otx2_nic *pfvf, otx2_aura_freeptr(pfvf, cq->cq_idx, bufptr + OTX2_HEAD_ROOM); cq->pool_ptrs--; } + otx2_get_page(cq->rbpool); return processed_cqe; }