octeontx2-pf: Fix rx buffer page refcount
authorSunil Goutham <sgoutham@marvell.com>
Wed, 25 Mar 2020 11:41:16 +0000 (17:11 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Mar 2020 19:20:00 +0000 (12:20 -0700)
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>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c

index 94044a5c01e7aca118aadaae6900db349156686b..45abe0cd0e7b584ed620b63d6c314c555252eba5 100644 (file)
@@ -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;
 }