Skip to content

Commit

Permalink
Squash to "bpf: Add bpf_mptcp_sched_kfunc_set"
Browse files Browse the repository at this point in the history
Rename bpf_mptcp_sched_kfunc_init to bpf_mptcp_kfunc_init. Since
some kfuncs related "mptcpify" will init in this function too.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
geliangtang authored and intel-lab-lkp committed Jul 31, 2023
1 parent 3877984 commit eedbc05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mptcp/bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ static const struct btf_kfunc_id_set bpf_mptcp_sched_kfunc_set = {
.set = &bpf_mptcp_sched_kfunc_ids,
};

static int __init bpf_mptcp_sched_kfunc_init(void)
static int __init bpf_mptcp_kfunc_init(void)
{
return register_btf_kfunc_id_set(BPF_PROG_TYPE_STRUCT_OPS,
&bpf_mptcp_sched_kfunc_set);
}
late_initcall(bpf_mptcp_sched_kfunc_init);
late_initcall(bpf_mptcp_kfunc_init);
#endif /* CONFIG_BPF_JIT */

struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk)
Expand Down

0 comments on commit eedbc05

Please sign in to comment.