linux-yocto/tools
Geliang Tang 5735f1fb81 selftests: mptcp: sockopt: fix error messages
[ Upstream commit b86418beade11d45540a2d20c4ec1128849b6c27 ]

This patch fixes several issues in the error reporting of the MPTCP sockopt
selftest:

1. Fix diff not printed: The error messages for counter mismatches had
   the actual difference ('diff') as argument, but it was missing in the
   format string. Displaying it makes the debugging easier.

2. Fix variable usage: The error check for 'mptcpi_bytes_acked' incorrectly
   used 'ret2' (sent bytes) for both the expected value and the difference
   calculation. It now correctly uses 'ret' (received bytes), which is the
   expected value for bytes_acked.

3. Fix off-by-one in diff: The calculation for the 'mptcpi_rcv_delta' diff
   was 's.mptcpi_rcv_delta - ret', which is off-by-one. It has been
   corrected to 's.mptcpi_rcv_delta - (ret + 1)' to match the expected
   value in the condition above it.

Fixes: 5dcff89e14 ("selftests: mptcp: explicitly tests aggregate counters")
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250912-net-mptcp-pm-uspace-deny_join_id0-v1-5-40171884ade8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-25 11:16:43 +02:00
..
accounting
arch x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-08 21:33:26 +02:00
bootconfig tools/bootconfig: specify LDFLAGS as an argument to CC 2025-05-16 11:22:54 +09:00
bpf bpftool: Fix JSON writer resource leak in version command 2025-08-20 18:41:18 +02:00
build tools build: Don't show libbfd build status as it is opt-in 2025-04-10 10:45:30 -03:00
certs
cgroup memcg_slabinfo: Fix use of PG_slab 2025-08-15 16:38:50 +02:00
counter
crypto
debugging
firewire
firmware
gpio tools: gpio: remove the include directory on make clean 2025-09-09 19:02:39 +02:00
hv tools/hv: fcopy: Fix irregularities with size of ring buffer 2025-07-15 06:25:33 +00:00
iio iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
include tools/nolibc: fix spelling of FD_SETBITMASK in FD_* macros 2025-08-20 18:41:42 +02:00
kvm/kvm_stat
laptop
leds
lib libbpf: Fix warning in calloc() usage 2025-08-20 18:41:07 +02:00
memory-model tools/memory-model/Documentation: Fix SRCU section in explanation.txt 2025-04-23 12:17:04 -07:00
mm
net tools: ynl-gen: fix nested array counting 2025-09-09 19:02:26 +02:00
objtool objtool/LoongArch: Get table size correctly if LTO is enabled 2025-08-28 16:34:48 +02:00
pcmcia
perf perf maps: Ensure kmap is set up for all inserts 2025-09-25 11:16:41 +02:00
power cpupower: Fix a bug where the -t option of the set subcommand was not working. 2025-09-09 19:02:16 +02:00
rcu
sched_ext sched_ext: change the variable name for slice refill event 2025-04-18 17:25:39 -10:00
scripts tools/build: Fix s390(x) cross-compilation with clang 2025-08-20 18:40:59 +02:00
sound
spi
testing selftests: mptcp: sockopt: fix error messages 2025-09-25 11:16:43 +02:00
thermal
time
tracing rtla: Check pkg-config install 2025-09-04 16:55:28 +02:00
usb
verification verification/dot2k: Make a separate dot2k_templates/Kconfig_container 2025-08-20 18:41:05 +02:00
virtio
wmi
workqueue
writeback
Makefile tools/Makefile: Add ynl target 2025-04-28 17:18:48 -07:00