[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250403013405.2827250-1-kuba@kernel.org>
Date: Wed, 2 Apr 2025 18:34:03 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org,
edumazet@...gle.com,
pabeni@...hat.com,
andrew+netdev@...n.ch,
horms@...nel.org,
ap420073@...il.com,
almasrymina@...gle.com,
asml.silence@...il.com,
dw@...idwei.uk,
sdf@...ichev.me,
Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH net v2 0/2] net: make memory provider install / close paths more common
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
Powered by blists - more mailing lists