Skip to content

Commit 1dc120b

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
Squash to "selftests/bpf: Add bpf_red scheduler & test"
Update test_bpf_sched(). Signed-off-by: Geliang Tang <[email protected]>
1 parent 4b910b0 commit 1dc120b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ static void test_red(void)
720720
if (!ASSERT_OK_PTR(skel, "open_and_load: red"))
721721
return;
722722

723-
test_bpf_sched(skel->obj, "red", WITH_DATA, WITH_DATA);
723+
test_bpf_sched(skel->maps.red, "red", WITH_DATA, WITH_DATA);
724724
mptcp_bpf_red__destroy(skel);
725725
}
726726

tools/testing/selftests/bpf/progs/mptcp_bpf_red.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int BPF_PROG(bpf_red_get_send, struct mptcp_sock *msk)
2727
return 0;
2828
}
2929

30-
SEC(".struct_ops")
30+
SEC(".struct_ops.link")
3131
struct mptcp_sched_ops red = {
3232
.init = (void *)mptcp_sched_red_init,
3333
.release = (void *)mptcp_sched_red_release,

0 commit comments

Comments
 (0)