summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Goutham <sgoutham@marvell.com>2020-03-25 12:41:16 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-25 20:20:00 +0100
commite88b288ec2bfb96997e56e4b63c50af4e6fe7736 (patch)
tree45e809ee06b19c2239ba1058acb1df4f32a82ada
parentMerge branch 's390-next' (diff)
downloadlinux-e88b288ec2bfb96997e56e4b63c50af4e6fe7736.tar.xz
linux-e88b288ec2bfb96997e56e4b63c50af4e6fe7736.zip
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 <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c1
1 files changed, 1 insertions, 0 deletions
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;
}