diff options
author | Ratheesh Kannoth <rkannoth@marvell.com> | 2023-05-22 07:34:04 +0530 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-05-23 10:47:50 +0200 |
commit | b2e3406a38f0f48b1dfb81e5bb73d243ff6af179 (patch) | |
tree | 622a4581fc410076753dc96333710c8c59447ab8 /drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c | |
parent | 62a41dc7166385e3ebf1d5795103bc8e3794838b (diff) | |
download | linux-b2e3406a38f0f48b1dfb81e5bb73d243ff6af179.tar.gz linux-b2e3406a38f0f48b1dfb81e5bb73d243ff6af179.tar.bz2 linux-b2e3406a38f0f48b1dfb81e5bb73d243ff6af179.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c b/drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c index d96ed29c1567..9d887bfc3108 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c @@ -63,7 +63,7 @@ static int otx2_qos_sq_aura_pool_init(struct otx2_nic *pfvf, int qidx) /* Initialize pool context */ err = otx2_pool_init(pfvf, pool_id, stack_pages, - num_sqbs, hw->sqb_size); + num_sqbs, hw->sqb_size, AURA_NIX_SQ); if (err) goto aura_free; |