Skip to contentSkip to conversation

net: Fix net_devmem_bind_dmabuf for non-devmem configs

PATCH Applied Pranjal Shrivastava 4 participants 4 messages May 28, 2025 – May 31, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: Fix net_devmem_bind_dmabuf for non-devmem configs

Fix the signature of the net_devmem_bind_dmabuf API for CONFIG_NET_DEVMEM=n.

Fixes bd61848900bf ("net: devmem: Implement TX path")
---
 net/core/devmem.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/core/devmem.h +2 -1
index e7ba77050b8f..0a3b28ba5c13 100644
@@ -170,8 +170,9 @@ 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,
+net_devmem_bind_dmabuf(struct net_device *dev,
 		       enum dma_data_direction direction,
+		       unsigned int dmabuf_fd,
 		       struct netdev_nl_sock *priv,
 		       struct netlink_ext_ack *extack)
 {
Signature · 1 line
2.49.0.1238.gf8c92423fb-goog
#1 lore raw
Quoted 6 lines · Pranjal Shrivastava

Fix the signature of the net_devmem_bind_dmabuf API for CONFIG_NET_DEVMEM=n.

Fixes bd61848900bf ("net: devmem: Implement TX path")

Patch itself looks good to me, but currently net-next is closed.

I've looked at the maintainer docs:
https://www.kernel.org/doc/Documentation/process/maintainer-netdev.rst

I'm unsure whether this needs to be resent to net now or wait for the merge window to reopen. I think net is for fixes to code in mainline linux, but the devmem TX path has not made it there yet (and is not even in the net tree yet). My guess is that this patch should be reposted to net-next once net-next reopens.

Signature · 2 lines
Thanks,
Mina
maintainer
#2 lore raw
Quoted 5 lines · On Wed, 28 May 2025 14:53:35 -0700 Mina Almasry wrote:

I'm unsure whether this needs to be resent to net now or wait for the merge window to reopen. I think net is for fixes to code in mainline linux, but the devmem TX path has not made it there yet (and is not even in the net tree yet). My guess is that this patch should be reposted to net-next once net-next reopens.

net-next "becomes" net during the merge window. There's a period of tree-uncertainty while our PR is out, and afterwards all fixes should target net.
No need to repost, we'll take this fix in tomorrow.

#3 lore raw
In reply to Pranjal Shrivastava
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Wed, 28 May 2025 21:10:58 +0000 you wrote:

Fix the signature of the net_devmem_bind_dmabuf API for CONFIG_NET_DEVMEM=n.

Fixes bd61848900bf ("net: devmem: Implement TX path")
---
 net/core/devmem.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Here is the summary with links:
- [net-next] net: Fix net_devmem_bind_dmabuf for non-devmem configs

    https://git.kernel.org/netdev/net/c/c1f4cb8a8d48

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html