Commit c1aacad3 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

eth: fbnic: link NAPIs to page pools



The lifetime of page pools is tied to NAPI instances,
and they are destroyed before NAPI is deleted.
It's safe to link them up.

Acked-by: default avatarJoe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250306145150.1757263-2-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a3cc3f42
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1316,7 +1316,9 @@ static int fbnic_alloc_nv_page_pool(struct fbnic_net *fbn,
		.dev = nv->dev,
		.dma_dir = DMA_BIDIRECTIONAL,
		.offset = 0,
		.max_len = PAGE_SIZE
		.max_len = PAGE_SIZE,
		.napi	= &nv->napi,
		.netdev	= fbn->netdev,
	};
	struct page_pool *pp;