Skip to content

Commit 294e39e

Browse files
committed
bnxt: hook NAPIs to page pools
bnxt has 1:1 mapping of page pools and NAPIs, so it's safe to hoook them up together. Reviewed-by: Tariq Toukan <[email protected]> Tested-by: Dragos Tatulea <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8c48eea commit 294e39e

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

+1
Original file line numberDiff line numberDiff line change
@@ -3211,6 +3211,7 @@ static int bnxt_alloc_rx_page_pool(struct bnxt *bp,
32113211

32123212
pp.pool_size = bp->rx_ring_size;
32133213
pp.nid = dev_to_node(&bp->pdev->dev);
3214+
pp.napi = &rxr->bnapi->napi;
32143215
pp.dev = &bp->pdev->dev;
32153216
pp.dma_dir = DMA_BIDIRECTIONAL;
32163217

0 commit comments

Comments
 (0)