]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: Proxy netdev_queue_get_dma_dev for leased queues
authorDavid Wei <dw@davidwei.uk>
Thu, 2 Apr 2026 23:10:24 +0000 (01:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 01:21:46 +0000 (18:21 -0700)
commit222b5566a02dbf136291376e4aa1806213fe9fa2
tree3762248ad9f037a9aa1261a5829b8d7e396e0230
parent5602ad61ebee99c83081fba1aaf5814736edc3e7
net: Proxy netdev_queue_get_dma_dev for leased queues

Extend netdev_queue_get_dma_dev to return the physical device of the
real rxq for DMA in case the queue was leased. This allows memory
providers like io_uring zero-copy or devmem to bind to the physically
leased rxq via virtual devices such as netkit.

Signed-off-by: David Wei <dw@davidwei.uk>
Co-developed-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20260402231031.447597-8-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netdev_queues.h
io_uring/zcrx.c
net/core/netdev-genl.c
net/core/netdev_queues.c