]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bnxt: hook NAPIs to page pools
authorJakub Kicinski <kuba@kernel.org>
Thu, 13 Apr 2023 04:26:05 +0000 (21:26 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Apr 2023 01:56:12 +0000 (18:56 -0700)
bnxt has 1:1 mapping of page pools and NAPIs, so it's safe
to hoook them up together.

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Tested-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 92289ab2f34ad70e2650ba5a309288e2fb2af40a..8fb9d1bbe56f47726a54c9d5acdde222bd89dbb4 100644 (file)
@@ -3211,6 +3211,7 @@ static int bnxt_alloc_rx_page_pool(struct bnxt *bp,
 
        pp.pool_size = bp->rx_ring_size;
        pp.nid = dev_to_node(&bp->pdev->dev);
+       pp.napi = &rxr->bnapi->napi;
        pp.dev = &bp->pdev->dev;
        pp.dma_dir = DMA_BIDIRECTIONAL;