net/smc: Introduce a hook to modify syn_smc at runtime
Subsystems (7)
D. Wythe
maintainerRFC PATCH 1/1 net/smc: Introduce a hook to modify syn_smc at runtime
From: "D. Wythe" <[email protected]>
The introduction of IPPROTO_SMC enables eBPF programs to determine whether to use SMC based on the context of socket creation, such as network namespaces, PID and comm name, etc.
As a subsequent enhancement, this patch introduces a new hook for eBPF programs that allows decisions on whether to use SMC or not at runtime, including but not limited to local/remote IP address or ports. In simpler words, this feature allows modifications to syn_smc through eBPF programs before the TCP three-way handshake got established.
Thanks to kfunc for making it easier for us to implement this feature in SMC.
--- include/linux/tcp.h | 4 ++- net/ipv4/tcp_input.c | 4 +-- net/smc/af_smc.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 66 insertions(+), 11 deletions(-)
include/linux/tcp.h +3 -1
@@ -478,7 +478,9 @@ struct tcp_sock {#endif #if IS_ENABLED (CONFIG_SMC )bool syn_smc;/* SYN includes SMC */ -bool (*smc_hs_congested)(const struct sock *sk); +void (*smc_openreq_init)(struct request_sock *req, +const struct tcp_options_received *rx_opt, +struct sk_buff *skb,const struct sock *sk);#endif #if defined(CONFIG_TCP_MD5SIG ) || defined(CONFIG_TCP_AO )
net/ipv4/tcp_input.c +2 -2
@@ -7029,8 +7029,8 @@ static void tcp_openreq_init(struct request_sock *req, ireq->ir_num =ntohs (tcp_hdr (skb)->dest); ireq->ir_mark =inet_request_mark (sk, skb);#if IS_ENABLED (CONFIG_SMC ) - ireq->smc_ok = rx_opt->smc_ok && !(tcp_sk (sk)->smc_hs_congested && -tcp_sk (sk)->smc_hs_congested (sk)); +if (ireq->smc_ok &&tcp_sk (sk)->smc_openreq_init) +tcp_sk (sk)->smc_openreq_init (req, rx_opt, skb, sk);#endif }
net/smc/af_smc.c +61 -8
115 lines not on this page · raw message
Signature · 1 line
1.8.3.1
Quoted 12 lines · D. Wythe
From: "D. Wythe" <[email protected]>
The introduction of
IPPROTO_SMCenables eBPF programs to determine whether to use SMC based on the context of socket creation, such as network namespaces, PID and comm name, etc.As a subsequent enhancement, this patch introduces a new hook for eBPF programs that allows decisions on whether to use SMC or not at runtime, including but not limited to local/remote IP address or ports. In simpler words, this feature allows modifications to
syn_smcthrough eBPF programs before the TCP three-way handshake got established.
Quoted 4 lines
Thanks to kfunc for making it easier for us to implement this feature in SMC.
Signed-off-by D. Wythe <[email protected]>
Hi D. Wythe,
I think it is a good feature to have for more flexible using of SMC.
It is also a good solution for the problem we met before:
Some services are not correctly handled TCP syn packet with SMC experimental option in head. The TCP connections to such services can not be successfully established through SMC. Thus, a program can not using SMC and accessing the services mentioned above in the same time. With this feature, by filter the port to the services metioned above, it is possible for programes both using SMC and accessing the services metioned above.
Quoted 65 lines
--- include/linux/tcp.h | 4 ++- net/ipv4/tcp_input.c | 4 +-- net/smc/af_smc.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 66 insertions(+), 11 deletions(-)include/linux/tcp.h +3
-1@@ -478,7 +478,9 @@ struct tcp_sock {#endif #if IS_ENABLED (CONFIG_SMC )bool syn_smc;/* SYN includes SMC */ -bool (*smc_hs_congested)(const struct sock *sk); +void (*smc_openreq_init)(struct request_sock *req, +const struct tcp_options_received *rx_opt, +struct sk_buff *skb,const struct sock *sk);#endif #if defined(CONFIG_TCP_MD5SIG ) || defined(CONFIG_TCP_AO )net/ipv4/tcp_input.c +2
-2@@ -7029,8 +7029,8 @@ static void tcp_openreq_init(struct request_sock *req, ireq->ir_num =ntohs (tcp_hdr (skb)->dest); ireq->ir_mark =inet_request_mark (sk, skb);#if IS_ENABLED (CONFIG_SMC ) - ireq->smc_ok = rx_opt->smc_ok && !(tcp_sk (sk)->smc_hs_congested && -tcp_sk (sk)->smc_hs_congested (sk)); + if (ireq->smc_ok && tcp_sk(sk)->smc_openreq_init)Should be rx_opt->smc_ok? + tcp_sk(sk)->smc_openreq_init(req, rx_opt, skb, sk);#endif }net/smc/af_smc.c +12
-1@@ -70,6 +70,15 @@static void smc_tcp_listen_work (struct work_struct *);static void smc_connect_work (struct work_struct *); +__bpf_hook_start (); + +__weak noinline int select_syn_smc(const struct sock *sk, struct sockaddr *peer) +{ +return 1 ; +} + +__bpf_hook_end (); +int smc_nl_dump_hs_limitation (struct sk_buff *skb,struct netlink_callback *cb) {struct smc_nl_dmp_ctx *cb_ctx =smc_nl_dmp_ctx (cb);@@ -156,19 +165,41 @@ static struct sock *smc_tcp_syn_recv_sock(const struct sock *sk,return NULL ; } -static bool smc_hs_congested (const struct sock *sk) +static void smc_openreq_init (struct request_sock *req, +const struct tcp_options_received *rx_opt, +struct sk_buff *skb,const struct sock *sk)
net/smc/af_smc.c static struct sock *smc_tcp_syn_recv_sock(const struct sock *sk, · line 179
Quoted 10 lines
net/smc/af_smc.c +3
-1{ +struct inet_request_sock *ireq =inet_rsk (req); +struct sockaddr_storage rmt_sockaddr = {0 };const struct smc_sock *smc; smc =smc_clcsock_user_data (sk);if (!smc) -return true; +return ;
It is better goto out_no_smc rather than return to explicitly set ireq->smc_ok to 0.
Quoted 55 lines
net/smc/af_smc.c +26
-6-if (workqueue_congested (WORK_CPU_UNBOUND , smc_hs_wq)) -return true; +if (smc->limit_smc_hs &&workqueue_congested (WORK_CPU_UNBOUND , smc_hs_wq)) + goto out_no_smc; -return false; + rmt_sockaddr.ss_family = sk->sk_family; + +if (rmt_sockaddr.ss_family ==AF_INET ) { +struct sockaddr_in *rmt4_sockaddr = (struct sockaddr_in *)&rmt_sockaddr; + + rmt4_sockaddr->sin_addr.s_addr = ireq->ir_rmt_addr; + rmt4_sockaddr->sin_port = ireq->ir_rmt_port; + }else { +struct sockaddr_in6 *rmt6_sockaddr = (struct sockaddr_in6 *)&rmt_sockaddr; + + rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr; + rmt6_sockaddr->sin6_port = ireq->ir_rmt_port; + } + + ireq->smc_ok =select_syn_smc (sk, (struct sockaddr *)&rmt_sockaddr); +return ; +out_no_smc: + ireq->smc_ok =0 ; +return ; }struct smc_hashinfo smc_v4_hashinfo = {@@ -1671,7 +1702,7 @@ int smc_connect(struct socket *sock, struct sockaddr *addr, }smc_copy_sock_settings_to_clc (smc); -tcp_sk (smc->clcsock->sk)->syn_smc =1 ; +tcp_sk (smc->clcsock->sk)->syn_smc =select_syn_smc (sk, addr);if (smc->connect_nonblock) { rc = -EALREADY ; goto out;@@ -2650,8 +2681,7 @@ int smc_listen(struct socket *sock, int backlog)inet_csk (smc->clcsock->sk)->icsk_af_ops = &smc->af_ops; -if (smc->limit_smc_hs) -tcp_sk (smc->clcsock->sk)->smc_hs_congested = smc_hs_congested; +tcp_sk (smc->clcsock->sk)->smc_openreq_init = smc_openreq_init; rc =kernel_listen (smc->clcsock, backlog);if (rc) {@@ -3475,6 +3505,20 @@ static void __net_exit smc_net_stat_exit(struct net *net) .exit = smc_net_stat_exit, }; +BTF_SET8_START(bpf_smc_fmodret_ids) +BTF_ID_FLAGS(func, select_syn_smc) +BTF_SET8_END(bpf_smc_fmodret_ids)
net/smc/af_smc.c static void __net_exit smc_net_stat_exit(struct net *net) · line 3520
Quoted 10 lines
net/smc/af_smc.c +10
-0+ +static const struct btf_kfunc_id_set bpf_smc_fmodret_set = { + .owner =THIS_MODULE , + .set = &bpf_smc_fmodret_ids, +}; + +static int __init bpf_smc_kfunc_init (void ) +{ +return register_btf_fmodret_id_set (&bpf_smc_fmodret_set); +}
Does it have unregister function? Is it OK for repeate register when reload the smc module?
Thanks,
Guangguan Wang
Quoted 22 lines
net/smc/af_smc.c +10
-0+static int __init smc_init (void ) {int rc;@@ -3574,8 +3618,17 @@ static int __init smc_init(void)pr_err ("%s: smc_inet_init fails with %d\n" , __func__, rc); goto out_ulp; } + + rc =bpf_smc_kfunc_init (); +if (rc) { +pr_err ("%s: bpf_smc_kfunc_init fails with %d\n" , __func__, rc); + goto out_inet; + } +static_branch_enable (&tcp_have_smc);return 0 ; +out_inet: +smc_inet_exit (); out_ulp:tcp_unregister_ulp (&smc_ulp_ops); out_lo:
D. Wythe
maintainerQuoted 51 lines · Guangguan Wang
Quoted 12 lines · D. Wythe
From: "D. Wythe" <[email protected]>
The introduction of
IPPROTO_SMCenables eBPF programs to determine whether to use SMC based on the context of socket creation, such as network namespaces, PID and comm name, etc.As a subsequent enhancement, this patch introduces a new hook for eBPF programs that allows decisions on whether to use SMC or not at runtime, including but not limited to local/remote IP address or ports. In simpler words, this feature allows modifications to
syn_smcthrough eBPF programs before the TCP three-way handshake got established.Quoted 4 lines
Thanks to kfunc for making it easier for us to implement this feature in SMC.
Signed-off-by D. Wythe <[email protected]>Hi D. Wythe,
I think it is a good feature to have for more flexible using of SMC.
It is also a good solution for the problem we met before:
Some services are not correctly handled TCP syn packet with SMC experimental option in head. The TCP connections to such services can not be successfully established through SMC. Thus, a program can not using SMC and accessing the services mentioned above in the same time. With this feature, by filter the port to the services metioned above, it is possible for programes both using SMC and accessing the services metioned above.Quoted 20 lines
--- include/linux/tcp.h | 4 ++- net/ipv4/tcp_input.c | 4 +-- net/smc/af_smc.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 66 insertions(+), 11 deletions(-)include/linux/tcp.h +3
-1@@ -478,7 +478,9 @@ struct tcp_sock {#endif #if IS_ENABLED (CONFIG_SMC )bool syn_smc;/* SYN includes SMC */ -bool (*smc_hs_congested)(const struct sock *sk); +void (*smc_openreq_init)(struct request_sock *req, +const struct tcp_options_received *rx_opt, +struct sk_buff *skb,const struct sock *sk);#endif
Quoted 12 lines
net/ipv4/tcp_input.c static void tcp_openreq_init(struct request_sock *req, · line 7032
Quoted 12 lines
include/linux/tcp.h +0
-0#if defined(CONFIG_TCP_MD5SIG ) || defined(CONFIG_TCP_AO )net/ipv4/tcp_input.c +1
-2@@ -7029,8 +7029,8 @@ static void tcp_openreq_init(struct request_sock *req, ireq->ir_num =ntohs (tcp_hdr (skb)->dest); ireq->ir_mark =inet_request_mark (sk, skb);#if IS_ENABLED (CONFIG_SMC ) - ireq->smc_ok = rx_opt->smc_ok && !(tcp_sk (sk)->smc_hs_congested && -tcp_sk (sk)->smc_hs_congested (sk)); + if (ireq->smc_ok && tcp_sk(sk)->smc_openreq_init)Should be rx_opt->smc_ok?
Yes, that's a bug here, i will fix it in next RFC.
Quoted 38 lines
Quoted 38 lines
net/ipv4/tcp_input.c +1
-0+tcp_sk (sk)->smc_openreq_init (req, rx_opt, skb, sk);#endif }net/smc/af_smc.c +14
-1@@ -70,6 +70,15 @@static void smc_tcp_listen_work (struct work_struct *);static void smc_connect_work (struct work_struct *); +__bpf_hook_start (); + +__weak noinline int select_syn_smc(const struct sock *sk, struct sockaddr *peer) +{ +return 1 ; +} + +__bpf_hook_end (); +int smc_nl_dump_hs_limitation (struct sk_buff *skb,struct netlink_callback *cb) {struct smc_nl_dmp_ctx *cb_ctx =smc_nl_dmp_ctx (cb);@@ -156,19 +165,41 @@ static struct sock *smc_tcp_syn_recv_sock(const struct sock *sk,return NULL ; } -static bool smc_hs_congested (const struct sock *sk) +static void smc_openreq_init (struct request_sock *req, +const struct tcp_options_received *rx_opt, +struct sk_buff *skb,const struct sock *sk) { +struct inet_request_sock *ireq =inet_rsk (req); +struct sockaddr_storage rmt_sockaddr = {0 };const struct smc_sock *smc;
Quoted 7 lines
net/smc/af_smc.c static struct sock *smc_tcp_syn_recv_sock(const struct sock *sk, · line 179
Quoted 5 lines
net/smc/af_smc.c +1
-1smc =smc_clcsock_user_data (sk);if (!smc) -return true; +return ;It is better goto
out_no_smcrather than return to explicitly setireq->smc_okto 0.
I'm a little bit unsure, returning directly can make consistent with the previous code.
In fact, once sk->sk_user_data goes NULL, the incoming sock will be dropped anyway whether it's a fallback or not.
Quoted 52 lines
Quoted 52 lines
net/smc/af_smc.c +23
-6-if (workqueue_congested (WORK_CPU_UNBOUND , smc_hs_wq)) -return true; +if (smc->limit_smc_hs &&workqueue_congested (WORK_CPU_UNBOUND , smc_hs_wq)) + goto out_no_smc; -return false; + rmt_sockaddr.ss_family = sk->sk_family; + +if (rmt_sockaddr.ss_family ==AF_INET ) { +struct sockaddr_in *rmt4_sockaddr = (struct sockaddr_in *)&rmt_sockaddr; + + rmt4_sockaddr->sin_addr.s_addr = ireq->ir_rmt_addr; + rmt4_sockaddr->sin_port = ireq->ir_rmt_port; + }else { +struct sockaddr_in6 *rmt6_sockaddr = (struct sockaddr_in6 *)&rmt_sockaddr; + + rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr; + rmt6_sockaddr->sin6_port = ireq->ir_rmt_port; + } + + ireq->smc_ok =select_syn_smc (sk, (struct sockaddr *)&rmt_sockaddr); +return ; +out_no_smc: + ireq->smc_ok =0 ; +return ; }struct smc_hashinfo smc_v4_hashinfo = {@@ -1671,7 +1702,7 @@ int smc_connect(struct socket *sock, struct sockaddr *addr, }smc_copy_sock_settings_to_clc (smc); -tcp_sk (smc->clcsock->sk)->syn_smc =1 ; +tcp_sk (smc->clcsock->sk)->syn_smc =select_syn_smc (sk, addr);if (smc->connect_nonblock) { rc = -EALREADY ; goto out;@@ -2650,8 +2681,7 @@ int smc_listen(struct socket *sock, int backlog)inet_csk (smc->clcsock->sk)->icsk_af_ops = &smc->af_ops; -if (smc->limit_smc_hs) -tcp_sk (smc->clcsock->sk)->smc_hs_congested = smc_hs_congested; +tcp_sk (smc->clcsock->sk)->smc_openreq_init = smc_openreq_init; rc =kernel_listen (smc->clcsock, backlog);if (rc) {@@ -3475,6 +3505,20 @@ static void __net_exit smc_net_stat_exit(struct net *net) .exit = smc_net_stat_exit, };
Quoted 15 lines
net/smc/af_smc.c static void __net_exit smc_net_stat_exit(struct net *net) · line 3520
Quoted 13 lines
net/smc/af_smc.c +13
-0+BTF_SET8_START (bpf_smc_fmodret_ids) +BTF_ID_FLAGS (func ,select_syn_smc ) +BTF_SET8_END (bpf_smc_fmodret_ids) + +static const struct btf_kfunc_id_set bpf_smc_fmodret_set = { + .owner =THIS_MODULE , + .set = &bpf_smc_fmodret_ids, +}; + +static int __init bpf_smc_kfunc_init (void ) +{ +return register_btf_fmodret_id_set (&bpf_smc_fmodret_set); +}Does it have unregister function? Is it OK for repeate register when reload the smc module?
Based on my current understanding, no such action was required.
Thanks,
D. Wythe
Quoted 24 lines
Thanks,
Guangguan WangQuoted 22 lines
net/smc/af_smc.c +10
-0+static int __init smc_init (void ) {int rc;@@ -3574,8 +3618,17 @@ static int __init smc_init(void)pr_err ("%s: smc_inet_init fails with %d\n" , __func__, rc); goto out_ulp; } + + rc =bpf_smc_kfunc_init (); +if (rc) { +pr_err ("%s: bpf_smc_kfunc_init fails with %d\n" , __func__, rc); + goto out_inet; + } +static_branch_enable (&tcp_have_smc);return 0 ; +out_inet: +smc_inet_exit (); out_ulp:tcp_unregister_ulp (&smc_ulp_ops); out_lo:
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Wythe,
[This is a private test report for your RFC patch.] kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/D-Wythe/net-smc-Introduce-a-hook-to-modify-syn_smc-at-runtime/20240918-181133 base: net-next/main patch link: https://lore.kernel.org/r/1726654204-61655-1-git-send-email-alibuda%40linux.alibaba.com patch subject: [RFC PATCH net-next] net/smc: Introduce a hook to modify syn_smc at runtime config: i386-buildonly-randconfig-003-20240922 (https://download.01.org/0day-ci/archive/20240922/[email protected]/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240922/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> net/smc/af_smc.c:194:36: error: no member named 'skc_v6_daddr' in 'struct sock_common'
194 | rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr;
| ~~~~~~^~~~~~~~~~~~~~ include/net/inet_sock.h:74:42: note: expanded from macro 'ir_v6_rmt_addr'
74 | #define ir_v6_rmt_addr req.__req_common.skc_v6_daddr
| ^
1 error generated.
vim +194 net/smc/af_smc.c
167
168 static void smc_openreq_init(struct request_sock *req,
169 const struct tcp_options_received *rx_opt,
170 struct sk_buff *skb, const struct sock *sk)
171 {
172 struct inet_request_sock *ireq = inet_rsk(req);
173 struct sockaddr_storage rmt_sockaddr = {0};
174 const struct smc_sock *smc;
175
176 smc = smc_clcsock_user_data(sk);
177
178 if (!smc)
179 return;
180
181 if (smc->limit_smc_hs && workqueue_congested(WORK_CPU_UNBOUND, smc_hs_wq))
182 goto out_no_smc;
183
184 rmt_sockaddr.ss_family = sk->sk_family;
185
186 if (rmt_sockaddr.ss_family == AF_INET) {
187 struct sockaddr_in *rmt4_sockaddr = (struct sockaddr_in *)&rmt_sockaddr;
188
189 rmt4_sockaddr->sin_addr.s_addr = ireq->ir_rmt_addr;
190 rmt4_sockaddr->sin_port = ireq->ir_rmt_port;
191 } else {
192 struct sockaddr_in6 *rmt6_sockaddr = (struct sockaddr_in6 *)&rmt_sockaddr;
193
> 194 rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr;
195 rmt6_sockaddr->sin6_port = ireq->ir_rmt_port;
196 }
197
198 ireq->smc_ok = select_syn_smc(sk, (struct sockaddr *)&rmt_sockaddr);
199 return;
200 out_no_smc:
201 ireq->smc_ok = 0;
202 return;
203 }
204
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Wythe,
[This is a private test report for your RFC patch.] kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/D-Wythe/net-smc-Introduce-a-hook-to-modify-syn_smc-at-runtime/20240918-181133 base: net-next/main patch link: https://lore.kernel.org/r/1726654204-61655-1-git-send-email-alibuda%40linux.alibaba.com patch subject: [RFC PATCH net-next] net/smc: Introduce a hook to modify syn_smc at runtime config: arm-randconfig-002-20240922 (https://download.01.org/0day-ci/archive/20240922/[email protected]/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 8663a75fa2f31299ab8d1d90288d9df92aadee88) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240922/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from net/smc/af_smc.c:27:
In file included from include/linux/if_vlan.h:10:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/arm/include/asm/cacheflush.h:10:
In file included from include/linux/mm.h:2232:
include/linux/vmstat.h:517:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
517 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
net/smc/af_smc.c:194:36: error: no member named 'skc_v6_daddr' in 'struct sock_common'
194 | rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr;
| ~~~~~~^~~~~~~~~~~~~~
include/net/inet_sock.h:74:42: note: expanded from macro 'ir_v6_rmt_addr'
74 | #define ir_v6_rmt_addr req.__req_common.skc_v6_daddr
| ^
>> net/smc/af_smc.c:3519:9: error: call to undeclared function 'register_btf_fmodret_id_set'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3519 | return register_btf_fmodret_id_set(&bpf_smc_fmodret_set);
| ^ net/smc/af_smc.c:3519:9: note: did you mean 'register_btf_kfunc_id_set'? include/linux/btf.h:623:19: note: 'register_btf_kfunc_id_set' declared here
623 | static inline int register_btf_kfunc_id_set(enum bpf_prog_type prog_type,
| ^
1 warning and 2 errors generated.
vim +/register_btf_fmodret_id_set +3519 net/smc/af_smc.c
3516
3517 static int __init bpf_smc_kfunc_init(void)
3518 {
> 3519 return register_btf_fmodret_id_set(&bpf_smc_fmodret_set);
3520 }
3521
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki