Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Fix repeat option when kfunc_call verification fails

There is no way where topts.repeat can be set to 1 when tc_test fails.
Fix the typo where the break statement slipped by one line.

Fixes: fb66223a244f ("selftests/bpf: add test for accessing ctx from syscall program type")
Signed-off-by: Yipeng Zou <zouyipeng@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/bpf/20230814031434.3077944-1-zouyipeng@huawei.com

authored by

Yipeng Zou and committed by
Daniel Borkmann
811915db 8e50750f

+1 -1
+1 -1
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
··· 173 173 case tc_test: 174 174 topts.data_in = &pkt_v4; 175 175 topts.data_size_in = sizeof(pkt_v4); 176 - break; 177 176 topts.repeat = 1; 177 + break; 178 178 } 179 179 180 180 skel = kfunc_call_fail__open_opts(&opts);