Skip to contentSkip to conversation

docs: fix the path of example code and example commands for device memory TCP

PATCH Applied Yui Washizu 4 participants 4 messages Mar 18, 2025 – Mar 24, 2025

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

PATCH 1/1 docs: fix the path of example code and example commands for device memory TCP

This updates the old path and fixes the description of unavailable options.

---
 Documentation/networking/devmem.rst | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/networking/devmem.rst +2 -3
index d95363645331..eb678ca45496 100644
@@ -256,7 +256,7 @@ Testing
 =======
 
 More realistic example code can be found in the kernel source under
-``tools/testing/selftests/net/ncdevmem.c``
+``tools/testing/selftests/drivers/net/hw/ncdevmem.c``
 
 ncdevmem is a devmem TCP netcat. It works very similarly to netcat, but
 receives data directly into a udmabuf.
@@ -268,8 +268,7 @@ ncdevmem has a validation mode as well that expects a repeating pattern of
 incoming data and validates it as such. For example, you can launch
 ncdevmem on the server by::
 
-	ncdevmem -s <server IP> -c <client IP> -f eth1 -d 3 -n 0000:06:00.0 -l \
-		 -p 5201 -v 7
+	ncdevmem -s <server IP> -c <client IP> -f <ifname> -l -p 5201 -v 7
 
 On client side, use regular netcat to send TX data to ncdevmem process
 on the server::
Signature · 1 line
2.43.5
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Yui Washizu

This updates the old path and fixes the description of unavailable options.

Thanks,

On inspection this patch looks good to me although I am unaware of the history of the -n and -d options.

I suppose this could have been two patches as it does two things. But it seems simple enough to me in its current form.

...

Reviewed-by on v1 1/1
#2 lore raw
In reply to Yui Washizu
Quoted 4 lines · Yui Washizu

This updates the old path and fixes the description of unavailable options.

Thank you, I think when I updated some of the implementations of ncdevmem I didn't update the docs:

Quoted 30 lines
---
 Documentation/networking/devmem.rst | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/networking/devmem.rst +2 -4
index d95363645331..eb678ca45496 100644
@@ -256,7 +256,7 @@ Testing
 =======
 
 More realistic example code can be found in the kernel source under
-``tools/testing/selftests/net/ncdevmem.c``
+``tools/testing/selftests/drivers/net/hw/ncdevmem.c``
 
 ncdevmem is a devmem TCP netcat. It works very similarly to netcat, but
 receives data directly into a udmabuf.
@@ -268,8 +268,7 @@ ncdevmem has a validation mode as well that expects a repeating pattern of
 incoming data and validates it as such. For example, you can launch
 ncdevmem on the server by::
 
-       ncdevmem -s <server IP> -c <client IP> -f eth1 -d 3 -n 0000:06:00.0 -l \
-                -p 5201 -v 7
+       ncdevmem -s <server IP> -c <client IP> -f <ifname> -l -p 5201 -v 7
 
 On client side, use regular netcat to send TX data to ncdevmem process
 on the server::
--

2.43.5

Signature · 2 lines
Thanks,
Mina
#3 lore raw
In reply to Yui Washizu
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 6 lines · On Tue, 18 Mar 2025 15:12:41 +0900 you wrote:

This updates the old path and fixes the description of unavailable options.

---
 Documentation/networking/devmem.rst | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Here is the summary with links:
- [net-next] docs: fix the path of example code and example commands for device memory TCP

    https://git.kernel.org/netdev/net-next/c/f8e1bcec62ef

You are awesome, thank you!

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