Skip to content

Commit 811915d

Browse files
Yipeng Zouborkmann
authored andcommitted
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: fb66223 ("selftests/bpf: add test for accessing ctx from syscall program type") Signed-off-by: Yipeng Zou <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Li Zetao <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 8e50750 commit 811915d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/prog_tests/kfunc_call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ static void verify_fail(struct kfunc_test_params *param)
173173
case tc_test:
174174
topts.data_in = &pkt_v4;
175175
topts.data_size_in = sizeof(pkt_v4);
176-
break;
177176
topts.repeat = 1;
177+
break;
178178
}
179179

180180
skel = kfunc_call_fail__open_opts(&opts);

0 commit comments

Comments
 (0)