]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: extend changes_pkt_data with cases w/o subprograms
authorEduard Zingerman <eddyz87@gmail.com>
Thu, 12 Dec 2024 07:07:11 +0000 (23:07 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 12 Dec 2024 19:38:36 +0000 (11:38 -0800)
commit04789af756a4a43e72986185f66f148e65b32fed
treeedaa01678aefab27827d8a95c8d1a24884676621
parentac6542ad92759cda383ad62b4e4cbfc28136abc1
selftests/bpf: extend changes_pkt_data with cases w/o subprograms

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>
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