]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: devmem: get netdev DMA device via new API
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 27 Aug 2025 14:39:57 +0000 (17:39 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 23:05:31 +0000 (16:05 -0700)
commit7c7e94603a76d62efbc4da4d0eb7a221add0ecfa
treebe64993450cf53c3aac3027b009f025fb2823dbd
parent59b8b32ac8d469958936fcea781c7f58e3d64742
net: devmem: get netdev DMA device via new API

Switch to the new API for fetching DMA devices for a netdev. The API is
called with queue index 0 for now which is equivalent with the previous
behavior.

This patch will allow devmem to work with devices where the DMA device
is not stored in the parent device. mlx5 SFs are an example of such a
device.

Multi-PF netdevs are still problematic (as they were before this
change). Upcoming patches will address this for the rx binding.

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