aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/devmem.h
diff options
context:
space:
mode:
authorDragos Tatulea <dtatulea@nvidia.com>2025-08-27 17:39:59 +0300
committerJakub Kicinski <kuba@kernel.org>2025-08-28 16:05:32 -0700
commit512c88fb0e884cbb4c495b8f3351a9185d1d50b1 (patch)
tree67ad862e10150b40a7c6efdf558b6a1a2c71819f /net/core/devmem.h
parentnet/mlx5e: add op for getting netdev DMA device (diff)
downloadlinux-512c88fb0e884cbb4c495b8f3351a9185d1d50b1.tar.gz
linux-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 <dtatulea@nvidia.com> Reviewed-by: Mina Almasry <almasrymina@google.com> Link: https://patch.msgid.link/20250827144017.1529208-7-dtatulea@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/devmem.h')
-rw-r--r--net/core/devmem.h2
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,