netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] page_pool: bnxt_en: unlink old page pool in queue api using helper
@ 2024-06-27  3:01 David Wei
  2024-06-27  3:01 ` [PATCH net-next v2 1/2] page_pool: export page_pool_disable_direct_recycling() David Wei
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Wei @ 2024-06-27  3:01 UTC (permalink / raw)
  To: Michael Chan, Andy Gospodarek, Jesper Dangaard Brouer,
	Ilias Apalodimas, Alexander Lobakin, netdev
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni

56ef27e3 unexported page_pool_unlink_napi() and renamed it to
page_pool_disable_direct_recycling(). This is because there was no
in-tree user of page_pool_unlink_napi().

Since then Rx queue API and an implementation in bnxt got merged. In the
bnxt implementation, it broadly follows the following steps: allocate
new queue memory + page pool, stop old rx queue, swap, then destroy old
queue memory + page pool.

The existing NAPI instance is re-used so when the old page pool that is
no longer used but still linked to this shared NAPI instance is
destroyed, it will trigger warnings.

In my initial patches I unlinked a page pool from a NAPI instance
directly. Instead, export page_pool_disable_direct_recycling() and call
that instead to avoid having a driver touch a core struct.

David Wei (2):
  page_pool: export page_pool_disable_direct_recycling()
  bnxt_en: unlink page pool when stopping Rx queue

 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 6 +-----
 include/net/page_pool/types.h             | 1 +
 net/core/page_pool.c                      | 3 ++-
 3 files changed, 4 insertions(+), 6 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-02 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27  3:01 [PATCH net-next v2 0/2] page_pool: bnxt_en: unlink old page pool in queue api using helper David Wei
2024-06-27  3:01 ` [PATCH net-next v2 1/2] page_pool: export page_pool_disable_direct_recycling() David Wei
2024-06-27  3:02 ` [PATCH net-next v2 2/2] bnxt_en: unlink page pool when stopping Rx queue David Wei
2024-06-27 23:50 ` [PATCH net-next v2 0/2] page_pool: bnxt_en: unlink old page pool in queue api using helper Jakub Kicinski
2024-07-02 13:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).