hsa: show tx/rx stats for UDP on timeout and fix test-bytes for UDP 47/43447/16
authorSemir Sionek <[email protected]>
Wed, 16 Jul 2025 12:54:25 +0000 (12:54 +0000)
committerFlorin Coras <[email protected]>
Wed, 6 Aug 2025 03:31:13 +0000 (03:31 +0000)
commit84d52285afd1b478d616026a3d63a714abb29f13
tree5de2ee9de20709a9ddc9bf37207b3efea649c0da
parent1709c217b37524a0e1a0232f26605d04e2a3bab3
hsa: show tx/rx stats for UDP on timeout and fix test-bytes for UDP

We shouldn't assume that all the dgrams will be transported between
server and client.
This patch addresses this issue in two places:

1. Now if we hit the timeout on UDP client rx (not all bytes
   transported), instead of an error - we display tx/rx byte stats.
2. For test-bytes mode, we now include a 4 byte buffer offset with each
   dgram to check against for data corruption. Previous solution was
   based on the assumption that data will arrive in sequence, which is
   just not the case for UDP.

Type: fix
Change-Id: I1a2ac8afe4180830b32f4ea67b4b477f167e0800
Signed-off-by: Semir Sionek <[email protected]>
extras/hs-test/echo_test.go
src/plugins/hs_apps/echo_client.c
src/plugins/hs_apps/echo_client.h
src/plugins/hs_apps/echo_server.c