]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: devmem: allow binding on rx queues with same DMA devices
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 27 Aug 2025 14:40:01 +0000 (17:40 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 23:05:32 +0000 (16:05 -0700)
commitb8aab4bb9585078012f5b6020454337a47081501
treea9aea0f5b229492569e5fe410807413cf16f29dc
parent1b416902cd255f51be37c1b7f7307b9f7027e04f
net: devmem: allow binding on rx queues with same DMA devices

Multi-PF netdevs have queues belonging to different PFs which also means
different DMA devices. This means that the binding on the DMA buffer can
be done to the incorrect device.

This change allows devmem binding to multiple queues only when the
queues have the same DMA device. Otherwise an error is returned.

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