Skip to content

Commit

Permalink
selftests/bpf: Fix repeat option when kfunc_call verification fails
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Yipeng Zou authored and borkmann committed Aug 14, 2023
1 parent 8e50750 commit 811915d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/prog_tests/kfunc_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ static void verify_fail(struct kfunc_test_params *param)
case tc_test:
topts.data_in = &pkt_v4;
topts.data_size_in = sizeof(pkt_v4);
break;
topts.repeat = 1;
break;
}

skel = kfunc_call_fail__open_opts(&opts);
Expand Down

0 comments on commit 811915d

Please sign in to comment.