netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: make memory provider install / close paths more common
@ 2025-04-03  1:34 Jakub Kicinski
  2025-04-03  1:34 ` [PATCH net v2 1/2] net: move mp dev config validation to __net_mp_open_rxq() Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jakub Kicinski @ 2025-04-03  1:34 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, ap420073,
	almasrymina, asml.silence, dw, sdf, Jakub Kicinski

We seem to be fixing bugs in config path for devmem which also exist
in the io_uring ZC path. Let's try to make the two paths more common,
otherwise this is bound to keep happening.

Found by code inspection and compile tested only.

v2:
 - [patch 1] add to commit msg
 - [patch 1] fix arg naming in the header
 - [patch 2] don't split the registration check, it may cause a race
   if we just bail on the registration state and not on the MP being
   present, as we drop and re-take the instance lock after setting
   reg_state
v1: https://lore.kernel.org/20250331194201.2026422-1-kuba@kernel.org

Jakub Kicinski (2):
  net: move mp dev config validation to __net_mp_open_rxq()
  net: avoid false positive warnings in __net_mp_close_rxq()

 include/net/page_pool/memory_provider.h |  6 +++
 net/core/devmem.c                       | 64 +++++++------------------
 net/core/netdev-genl.c                  |  6 ---
 net/core/netdev_rx_queue.c              | 53 +++++++++++++++-----
 4 files changed, 63 insertions(+), 66 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-04-04 15:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03  1:34 [PATCH net v2 0/2] net: make memory provider install / close paths more common Jakub Kicinski
2025-04-03  1:34 ` [PATCH net v2 1/2] net: move mp dev config validation to __net_mp_open_rxq() Jakub Kicinski
2025-04-03  1:34 ` [PATCH net v2 2/2] net: avoid false positive warnings in __net_mp_close_rxq() Jakub Kicinski
2025-04-03 21:37   ` Mina Almasry
2025-04-04 15:10 ` [PATCH net v2 0/2] net: make memory provider install / close paths more common 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).