]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: extend changes_pkt_data with cases w/o subprograms
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 30 Apr 2025 08:19:52 +0000 (16:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:43:55 +0000 (09:43 +0200)
commit47e24c86cb20515d1da56aadf063775232e22336
treefaef0c06b9dfed98c5f96a4f49707fddadfe8415
parent3a467d938da2830009f2bea21b497377694a32a0
selftests/bpf: extend changes_pkt_data with cases w/o subprograms

commit 04789af756a4a43e72986185f66f148e65b32fed upstream.

Extend changes_pkt_data tests with test cases freplacing the main
program that does not have subprograms. Try four combinations when
both main program and replacement do and do not change packet data.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20241212070711.427443-2-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c
tools/testing/selftests/bpf/progs/changes_pkt_data.c
tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c