aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/lock_debug.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-04-03 01:34:04 +0000
committerJakub Kicinski <[email protected]>2025-04-04 14:35:38 +0000
commitec304b70d46bd2ed66541c5b57b63276529e05b1 (patch)
treecdf44a3e05d4cb02eaa6b166857cf49d0993df78 /net/core/lock_debug.c
parentnet: ibmveth: make veth_pool_store stop hanging (diff)
downloadkernel-ec304b70d46bd2ed66541c5b57b63276529e05b1.tar.gz
kernel-ec304b70d46bd2ed66541c5b57b63276529e05b1.zip
net: move mp dev config validation to __net_mp_open_rxq()
devmem code performs a number of safety checks to avoid having to reimplement all of them in the drivers. Move those to __net_mp_open_rxq() and reuse that function for binding to make sure that io_uring ZC also benefits from them. While at it rename the queue ID variable to rxq_idx in __net_mp_open_rxq(), we touch most of the relevant lines. The XArray insertion is reordered after the netdev_rx_queue_restart() call, otherwise we'd need to duplicate the queue index check or risk inserting an invalid pointer. The XArray allocation failures should be extremely rare. Reviewed-by: Mina Almasry <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Fixes: 6e18ed929d3b ("net: add helpers for setting a memory provider on an rx queue") Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/lock_debug.c')
0 files changed, 0 insertions, 0 deletions