aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYui Washizu <yui.washidu@gmail.com>2025-03-18 15:12:41 +0900
committerJakub Kicinski <kuba@kernel.org>2025-03-24 12:12:09 -0700
commitf8e1bcec62efbce2c6acd116b1f4a82a8441ce11 (patch)
tree90011b1a06a93878577b6271d973a74bab70fc12
parenttcp/dccp: Remove inet_connection_sock_af_ops.addr2sockaddr(). (diff)
downloadwireguard-linux-f8e1bcec62efbce2c6acd116b1f4a82a8441ce11.tar.xz
wireguard-linux-f8e1bcec62efbce2c6acd116b1f4a82a8441ce11.zip
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. Signed-off-by: Yui Washizu <yui.washidu@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Mina Almasry <almasrymina@google.com> Link: https://patch.msgid.link/20250318061251.775191-1-yui.washidu@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--Documentation/networking/devmem.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/networking/devmem.rst b/Documentation/networking/devmem.rst
index d95363645331..eb678ca45496 100644
--- a/Documentation/networking/devmem.rst
+++ b/Documentation/networking/devmem.rst
@@ -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::