@@ -16,9 +16,8 @@ void BPF_PROG(mptcp_sched_bkup_release, struct mptcp_sock *msk)
{
}
-SEC("struct_ops")
-int BPF_PROG(bpf_bkup_get_subflow, struct mptcp_sock *msk,
- struct mptcp_sched_data *data)
+static int bpf_bkup_get_subflow(struct mptcp_sock *msk,
+ struct mptcp_sched_data *data)
{
int nr = -1;
@@ -43,10 +42,25 @@ int BPF_PROG(bpf_bkup_get_subflow, struct mptcp_sock *msk,
return 0;
}
-SEC(".struct_ops")
+SEC("struct_ops")
+int BPF_PROG(bpf_bkup_get_send, struct mptcp_sock *msk,
+ struct mptcp_sched_data *data)
+{
+ return bpf_bkup_get_subflow(msk, data);
+}
+
+SEC("struct_ops")
+int BPF_PROG(bpf_bkup_get_retrans, struct mptcp_sock *msk,
+ struct mptcp_sched_data *data)
+{
+ return bpf_bkup_get_subflow(msk, data);
+}
+
+SEC(".struct_ops.link")
struct mptcp_sched_ops bkup = {
.init = (void *)mptcp_sched_bkup_init,
.release = (void *)mptcp_sched_bkup_release,
- .get_subflow = (void *)bpf_bkup_get_subflow,
+ .get_send = (void *)bpf_bkup_get_send,
+ .get_retrans = (void *)bpf_bkup_get_retrans,
.name = "bpf_bkup",
};