octeontx2-pf: Add support for page pool
authorRatheesh Kannoth <rkannoth@marvell.com>
Mon, 22 May 2023 02:04:04 +0000 (07:34 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 May 2023 08:47:50 +0000 (10:47 +0200)
commitb2e3406a38f0f48b1dfb81e5bb73d243ff6af179
tree622a4581fc410076753dc96333710c8c59447ab8
parent62a41dc7166385e3ebf1d5795103bc8e3794838b
octeontx2-pf: Add support for page pool

Page pool for each rx queue enhance rx side performance
by reclaiming buffers back to each queue specific pool. DMA
mapping is done only for first allocation of buffers.
As subsequent buffers allocation avoid DMA mapping,
it results in performance improvement.

Image        |  Performance
------------ | ------------
Vannila      |   3Mpps
             |
with this    |   42Mpps
change      |
---------------------------

Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Link: https://lore.kernel.org/r/20230522020404.152020-1-rkannoth@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/Kconfig
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h
drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c