Drop data_init interface.
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
tools/testing/selftests/bpf/progs/mptcp_bpf_first.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c b/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c
index 3b6669d536df..ae0eced5b91f 100644
--- a/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c
+++ b/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c
@@ -16,15 +16,10 @@ void BPF_PROG(mptcp_sched_first_release, struct mptcp_sock *msk)
{
}
-void BPF_STRUCT_OPS(bpf_first_data_init, struct mptcp_sock *msk,
- struct mptcp_sched_data *data)
-{
- mptcp_sched_data_set_contexts(msk, data);
-}
-
int BPF_STRUCT_OPS(bpf_first_get_subflow, struct mptcp_sock *msk,
- const struct mptcp_sched_data *data)
+ struct mptcp_sched_data *data)
{
+ mptcp_sched_data_set_contexts(msk, data);
mptcp_subflow_set_scheduled(mptcp_subflow_ctx_by_pos(data, 0), true);
return 0;
}
@@ -33,7 +28,6 @@ SEC(".struct_ops")
struct mptcp_sched_ops first = {
.init = (void *)mptcp_sched_first_init,
.release = (void *)mptcp_sched_first_release,
- .data_init = (void *)bpf_first_data_init,
.get_subflow = (void *)bpf_first_get_subflow,
.name = "bpf_first",
};
--
2.35.3