]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: drop the unused kTLS program from test_sockmap
authorJakub Kicinski <kuba@kernel.org>
Sun, 14 Jun 2026 01:40:59 +0000 (18:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Jun 2026 15:55:41 +0000 (08:55 -0700)
commit6af8971d910ec80d7ed33e41a68b86c08142df08
tree6662dd778e5799b2cafcc6ec57811d3e43e5cb2e
parentfaf89584e436d737ba4e64fe021e83d5665e7bd5
selftests/bpf: drop the unused kTLS program from test_sockmap

With the sockmap + kTLS tests gone, the BPF-side support in test_sockmap
is dead: the tls_sock_map map and bpf_prog3 (which redirected skbs into
it) are no longer referenced. Remove them, along with the now-unused
bpf_write_pass() helper.

bpf_prog3 was progs[2], so renumber the progs[] users in test_sockmap.c:
the sockops program drops to progs[2] and the sk_msg tx programs to
progs[3..7]. Shrink the map/prog arrays from 9 to 8 and drop the
tls_sock_map entry (the last one) from map_names[] to match.

Link: https://patch.msgid.link/20260614014102.461064-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/bpf/progs/test_sockmap_kern.h
tools/testing/selftests/bpf/test_sockmap.c