diff options
| author | Hoyeon Lee <hoyeon.lee@suse.com> | 2025-11-16 07:55:39 +0900 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2025-11-18 14:57:53 -0800 |
| commit | ec12ab2cda6607debde3f5cf6d425a1ec5fae1dd (patch) | |
| tree | 913dbd3fc9deb949b6cbf4e0f3205510afade6a8 /tools/testing/selftests/bpf/prog_tests/skb_helpers.c | |
| parent | f700b37314d9b96dce66e31d2da865b201fa6b38 (diff) | |
selftests/bpf: Replace TCP CC string comparisons with bpf_strncmp
The connect4_prog and bpf_iter_setsockopt tests duplicate the same
open-coded TCP congestion control string comparison logic. Since
bpf_strncmp() provides the same functionality, use it instead to
avoid repeated open-coded loops.
This change applies only to functional BPF tests and does not affect
the verifier performance benchmarks (veristat.cfg). No functional
changes intended.
Reviewed-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Hoyeon Lee <hoyeon.lee@suse.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20251115225550.1086693-5-hoyeon.lee@suse.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_helpers.c')
0 files changed, 0 insertions, 0 deletions
