Thread (4 messages) flat view 4 messages, 3 authors, 11d ago

Re: [PATCH net-next] selftests: net: Add TCP payload verification to udpgso_bench_rx

From: Jiayuan Chen <jiayuan.chen@linux.dev>
Date: 2026-09-07 02:57:24
Also in: linux-kselftest, lkml

On 9/6/26 10:56 PM, shuo huang wrote:
udpgso_bench_rx supports UDP payload verification but rejects the
combination of TCP and verification mode. Its TCP receive path discards
the payload, so it cannot check the data generated by udpgso_bench_tx.

Read the TCP payload into a buffer when verification is requested
and check it against the transmitter's repeating alphabetic
pattern. Preserve the verification position across recv() calls
because TCP does not preserve send boundaries. Restart the pattern
at the payload length supplied with -l, matching the transmitter's
pattern restart on each message.

Require a nonzero -l value for TCP verification and retain the existing
discard path when verification is disabled.

Signed-off-by: shuo huang <redacted>

Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help