mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
selftests: add ncdevmem, netcat for devmem TCP
ncdevmem is a devmem TCP netcat. It works similarly to netcat, but it sends and receives data using the devmem TCP APIs. It uses udmabuf as the dmabuf provider. It is compatible with a regular netcat running on a peer, or a ncdevmem running on a peer. In addition to normal netcat support, ncdevmem has a validation mode, where it sends a specific pattern and validates this pattern on the receiver side to ensure data integrity. Suggested-by: Stanislav Fomichev <sdf@fomichev.me> Signed-off-by: Mina Almasry <almasrymina@google.com> Link: https://patch.msgid.link/20240910171458.219195-13-almasrymina@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
09d1db26b5
commit
85585b4bc8
1
tools/net/ynl/lib/.gitignore
vendored
1
tools/net/ynl/lib/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
__pycache__/
|
||||
*.d
|
||||
|
||||
1
tools/testing/selftests/net/.gitignore
vendored
1
tools/testing/selftests/net/.gitignore
vendored
@@ -17,6 +17,7 @@ ipv6_flowlabel
|
||||
ipv6_flowlabel_mgr
|
||||
log.txt
|
||||
msg_zerocopy
|
||||
ncdevmem
|
||||
nettest
|
||||
psock_fanout
|
||||
psock_snd
|
||||
|
||||
@@ -97,6 +97,11 @@ TEST_PROGS += fq_band_pktlimit.sh
|
||||
TEST_PROGS += vlan_hw_filter.sh
|
||||
TEST_PROGS += bpf_offload.py
|
||||
|
||||
# YNL files, must be before "include ..lib.mk"
|
||||
EXTRA_CLEAN += $(OUTPUT)/libynl.a
|
||||
YNL_GEN_FILES := ncdevmem
|
||||
TEST_GEN_FILES += $(YNL_GEN_FILES)
|
||||
|
||||
TEST_FILES := settings
|
||||
TEST_FILES += in_netns.sh lib.sh net_helper.sh setup_loopback.sh setup_veth.sh
|
||||
|
||||
@@ -106,6 +111,10 @@ TEST_INCLUDES := forwarding/lib.sh
|
||||
|
||||
include ../lib.mk
|
||||
|
||||
# YNL build
|
||||
YNL_GENS := netdev
|
||||
include ynl.mk
|
||||
|
||||
$(OUTPUT)/epoll_busy_poll: LDLIBS += -lcap
|
||||
$(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma
|
||||
$(OUTPUT)/tcp_mmap: LDLIBS += -lpthread -lcrypto
|
||||
|
||||
570
tools/testing/selftests/net/ncdevmem.c
Normal file
570
tools/testing/selftests/net/ncdevmem.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user