mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
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: Joe Damato <jdamato@fastly.com> Link: https://patch.msgid.link/20250306145150.1757263-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a3cc3f424d
commit
c1aacad306
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user