Commit 811915db authored by Yipeng Zou's avatar Yipeng Zou Committed by Daniel Borkmann

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: fb66223a ("selftests/bpf: add test for accessing ctx from syscall program type")
Signed-off-by: default avatarYipeng Zou <zouyipeng@huawei.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Reviewed-by: default avatarLi Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/bpf/20230814031434.3077944-1-zouyipeng@huawei.com
parent 8e50750f
...@@ -173,8 +173,8 @@ static void verify_fail(struct kfunc_test_params *param) ...@@ -173,8 +173,8 @@ static void verify_fail(struct kfunc_test_params *param)
case tc_test: case tc_test:
topts.data_in = &pkt_v4; topts.data_in = &pkt_v4;
topts.data_size_in = sizeof(pkt_v4); topts.data_size_in = sizeof(pkt_v4);
break;
topts.repeat = 1; topts.repeat = 1;
break;
} }
skel = kfunc_call_fail__open_opts(&opts); skel = kfunc_call_fail__open_opts(&opts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment