projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3cc3f4
)
eth: fbnic: link NAPIs to page pools
author
Jakub Kicinski
<kuba@kernel.org>
Thu, 6 Mar 2025 14:51:48 +0000
(06:51 -0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 8 Mar 2025 03:37:37 +0000
(19:37 -0800)
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>
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
index aba4c65974eeaf23f19480e2f11f3c0720d2f1ed..2d2d41c6891b6c670d9f7e98e9f7cacad2eb89ac 100644
(file)
--- a/
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
+++ b/
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
@@
-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;