Skip to content

Commit 5103099

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

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static void test_bkup(void)
696696
if (!ASSERT_OK_PTR(skel, "open_and_load: bkup"))
697697
return;
698698

699-
test_bpf_sched(skel->obj, "bkup", WITH_DATA, WITHOUT_DATA);
699+
test_bpf_sched(skel->maps.bkup, "bkup", WITH_DATA, WITHOUT_DATA);
700700
mptcp_bpf_bkup__destroy(skel);
701701
}
702702

tools/testing/selftests/bpf/progs/mptcp_bpf.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
#include "bpf_experimental.h"
66

7-
/* mptcp helpers from include/net/mptcp.h */
8-
#define MPTCP_SUBFLOWS_MAX 8
9-
107
/* list helpers from include/linux/list.h */
118
static inline int list_is_head(const struct list_head *list,
129
const struct list_head *head)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int BPF_PROG(bpf_bkup_get_send, struct mptcp_sock *msk)
3232
return 0;
3333
}
3434

35-
SEC(".struct_ops")
35+
SEC(".struct_ops.link")
3636
struct mptcp_sched_ops bkup = {
3737
.init = (void *)mptcp_sched_bkup_init,
3838
.release = (void *)mptcp_sched_bkup_release,

0 commit comments

Comments
 (0)