]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: devmem: pre-read requested rx queues during bind
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 27 Aug 2025 14:40:00 +0000 (17:40 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 23:05:32 +0000 (16:05 -0700)
commit1b416902cd255f51be37c1b7f7307b9f7027e04f
treef971fb76ef1feca63666de3173e10b2c67dc13d9
parent512c88fb0e884cbb4c495b8f3351a9185d1d50b1
net: devmem: pre-read requested rx queues during bind

Instead of reading the requested rx queues after binding the buffer,
read the rx queues in advance in a bitmap and iterate over them when
needed.

This is a preparation for fetching the DMA device for each queue.

This patch has no functional changes besides adding an extra
rq index bounds check.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250827144017.1529208-8-dtatulea@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/netdev-genl.c