Thread (27 messages) 27 messages, 6 authors, 2025-10-02

Re: [RFC net-next v3 1/7] queue_api: add support for fetching per queue DMA dev

From: Pavel Begunkov <asml.silence@gmail.com>
Date: 2025-08-19 15:55:01
Also in: lkml

On 8/15/25 12:03, Dragos Tatulea wrote:
For zerocopy (io_uring, devmem), there is an assumption that the
parent device can do DMA. However that is not always the case:
- Scalable Function netdevs [1] have the DMA device in the grandparent.
- For Multi-PF netdevs [2] queues can be associated to different DMA
devices.

This patch introduces the a queue based interface for allowing drivers
to expose a different DMA device for zerocopy.

[1] Documentation/networking/device_drivers/ethernet/mellanox/mlx5/switchdev.rst
[2] Documentation/networking/multi-pf-netdev.rst

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
---
  include/net/netdev_queues.h | 20 ++++++++++++++++++++
  1 file changed, 20 insertions(+)
Assuming it'll be moved and uninlined

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>

-- 
Pavel Begunkov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help