Skip to content

Commit 1f3b948

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
Squash to "bpf: Export mptcp packet scheduler helpers"
Remove bpf_mptcp_subflow_ctx_by_pos from BPF kfunc set. Drop bpf_mptcp_sched_kfunc_set, use bpf_mptcp_common_kfunc_set instead. Signed-off-by: Geliang Tang <[email protected]>
1 parent 0d13450 commit 1f3b948

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

net/mptcp/bpf.c

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -321,27 +321,18 @@ BTF_ID_FLAGS(func, bpf_iter_mptcp_subflow_next, KF_ITER_NEXT | KF_RET_NULL)
321321
BTF_ID_FLAGS(func, bpf_iter_mptcp_subflow_destroy, KF_ITER_DESTROY)
322322
BTF_ID_FLAGS(func, bpf_mptcp_sock_acquire, KF_ACQUIRE | KF_RET_NULL)
323323
BTF_ID_FLAGS(func, bpf_mptcp_sock_release, KF_RELEASE)
324-
BTF_KFUNCS_END(bpf_mptcp_common_kfunc_ids)
325-
326-
static const struct btf_kfunc_id_set bpf_mptcp_common_kfunc_set = {
327-
.owner = THIS_MODULE,
328-
.set = &bpf_mptcp_common_kfunc_ids,
329-
};
330-
331-
BTF_KFUNCS_START(bpf_mptcp_sched_kfunc_ids)
332324
BTF_ID_FLAGS(func, mptcp_subflow_set_scheduled)
333-
BTF_ID_FLAGS(func, bpf_mptcp_subflow_ctx_by_pos)
334325
BTF_ID_FLAGS(func, mptcp_subflow_active)
335326
BTF_ID_FLAGS(func, mptcp_set_timeout)
336327
BTF_ID_FLAGS(func, mptcp_wnd_end)
337328
BTF_ID_FLAGS(func, tcp_stream_memory_free)
338329
BTF_ID_FLAGS(func, bpf_mptcp_subflow_queues_empty)
339330
BTF_ID_FLAGS(func, mptcp_pm_subflow_chk_stale)
340-
BTF_KFUNCS_END(bpf_mptcp_sched_kfunc_ids)
331+
BTF_KFUNCS_END(bpf_mptcp_common_kfunc_ids)
341332

342-
static const struct btf_kfunc_id_set bpf_mptcp_sched_kfunc_set = {
333+
static const struct btf_kfunc_id_set bpf_mptcp_common_kfunc_set = {
343334
.owner = THIS_MODULE,
344-
.set = &bpf_mptcp_sched_kfunc_ids,
335+
.set = &bpf_mptcp_common_kfunc_ids,
345336
};
346337

347338
static int __init bpf_mptcp_kfunc_init(void)
@@ -352,7 +343,7 @@ static int __init bpf_mptcp_kfunc_init(void)
352343
ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_UNSPEC,
353344
&bpf_mptcp_common_kfunc_set);
354345
ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_STRUCT_OPS,
355-
&bpf_mptcp_sched_kfunc_set);
346+
&bpf_mptcp_common_kfunc_set);
356347
#ifdef CONFIG_BPF_JIT
357348
ret = ret ?: register_bpf_struct_ops(&bpf_mptcp_sched_ops, mptcp_sched_ops);
358349
#endif

0 commit comments

Comments
 (0)