diff options
| author | Dragos Tatulea <[email protected]> | 2025-08-27 14:39:59 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-08-28 23:05:32 +0000 |
| commit | 512c88fb0e884cbb4c495b8f3351a9185d1d50b1 (patch) | |
| tree | 67ad862e10150b40a7c6efdf558b6a1a2c71819f /net/core/devmem.h | |
| parent | net/mlx5e: add op for getting netdev DMA device (diff) | |
| download | kernel-512c88fb0e884cbb4c495b8f3351a9185d1d50b1.tar.gz kernel-512c88fb0e884cbb4c495b8f3351a9185d1d50b1.zip | |
net: devmem: pull out dma_dev out of net_devmem_bind_dmabuf
Fetch the DMA device before calling net_devmem_bind_dmabuf()
and pass it on as a parameter.
This is needed for an upcoming change which will read the
DMA device per queue.
This patch has no functional changes.
Signed-off-by: Dragos Tatulea <[email protected]>
Reviewed-by: Mina Almasry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/devmem.h')
| -rw-r--r-- | net/core/devmem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/devmem.h b/net/core/devmem.h index 41cd6e1c9141..101150d761af 100644 --- a/net/core/devmem.h +++ b/net/core/devmem.h @@ -85,6 +85,7 @@ struct dmabuf_genpool_chunk_owner { void __net_devmem_dmabuf_binding_free(struct work_struct *wq); struct net_devmem_dmabuf_binding * net_devmem_bind_dmabuf(struct net_device *dev, + struct device *dma_dev, enum dma_data_direction direction, unsigned int dmabuf_fd, struct netdev_nl_sock *priv, struct netlink_ext_ack *extack); @@ -170,6 +171,7 @@ static inline void net_devmem_put_net_iov(struct net_iov *niov) static inline struct net_devmem_dmabuf_binding * net_devmem_bind_dmabuf(struct net_device *dev, + struct device *dma_dev, enum dma_data_direction direction, unsigned int dmabuf_fd, struct netdev_nl_sock *priv, |
