aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/devmem.h
diff options
context:
space:
mode:
authorMina Almasry <[email protected]>2025-05-23 23:05:17 +0000
committerJakub Kicinski <[email protected]>2025-05-28 02:19:35 +0000
commit88e47c93b3a2a45b55f03f238b68be826917bb2e (patch)
tree48f5cc099a59c406f3ac66ac5634bbaccefbee03 /net/core/devmem.h
parentselftests: netfilter: nft_queue.sh: include file transfer duration in log mes... (diff)
downloadkernel-88e47c93b3a2a45b55f03f238b68be826917bb2e.tar.gz
kernel-88e47c93b3a2a45b55f03f238b68be826917bb2e.zip
net: devmem: move list_add to net_devmem_bind_dmabuf.
It's annoying for the list_add to be outside net_devmem_bind_dmabuf, but the list_del is in net_devmem_unbind_dmabuf. Make it consistent by having both the list_add/del be inside the net_devmem_[un]bind_dmabuf. Cc: [email protected] Signed-off-by: Mina Almasry <[email protected]> Tested-by: Taehee Yoo <[email protected]> Acked-by: Stanislav Fomichev <[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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/core/devmem.h b/net/core/devmem.h
index 58d8d3c1b945..e7ba77050b8f 100644
--- a/net/core/devmem.h
+++ b/net/core/devmem.h
@@ -11,6 +11,7 @@
#define _NET_DEVMEM_H
#include <net/netmem.h>
+#include <net/netdev_netlink.h>
struct netlink_ext_ack;
@@ -82,7 +83,8 @@ void __net_devmem_dmabuf_binding_free(struct work_struct *wq);
struct net_devmem_dmabuf_binding *
net_devmem_bind_dmabuf(struct net_device *dev,
enum dma_data_direction direction,
- unsigned int dmabuf_fd, struct netlink_ext_ack *extack);
+ unsigned int dmabuf_fd, struct netdev_nl_sock *priv,
+ struct netlink_ext_ack *extack);
struct net_devmem_dmabuf_binding *net_devmem_lookup_dmabuf(u32 id);
void net_devmem_unbind_dmabuf(struct net_devmem_dmabuf_binding *binding);
int net_devmem_bind_dmabuf_to_queue(struct net_device *dev, u32 rxq_idx,
@@ -170,6 +172,7 @@ static inline void __net_devmem_dmabuf_binding_free(struct work_struct *wq)
static inline struct net_devmem_dmabuf_binding *
net_devmem_bind_dmabuf(struct net_device *dev, unsigned int dmabuf_fd,
enum dma_data_direction direction,
+ struct netdev_nl_sock *priv,
struct netlink_ext_ack *extack)
{
return ERR_PTR(-EOPNOTSUPP);