@@ -321,27 +321,18 @@ BTF_ID_FLAGS(func, bpf_iter_mptcp_subflow_next, KF_ITER_NEXT | KF_RET_NULL)
321321BTF_ID_FLAGS (func , bpf_iter_mptcp_subflow_destroy , KF_ITER_DESTROY )
322322BTF_ID_FLAGS (func , bpf_mptcp_sock_acquire , KF_ACQUIRE | KF_RET_NULL )
323323BTF_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 )
332324BTF_ID_FLAGS (func , mptcp_subflow_set_scheduled )
333- BTF_ID_FLAGS (func , bpf_mptcp_subflow_ctx_by_pos )
334325BTF_ID_FLAGS (func , mptcp_subflow_active )
335326BTF_ID_FLAGS (func , mptcp_set_timeout )
336327BTF_ID_FLAGS (func , mptcp_wnd_end )
337328BTF_ID_FLAGS (func , tcp_stream_memory_free )
338329BTF_ID_FLAGS (func , bpf_mptcp_subflow_queues_empty )
339330BTF_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
347338static 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