diff options
author | Guangguan Wang <guangguan.wang@linux.alibaba.com> | 2023-11-22 21:52:58 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-11-24 12:13:14 +0000 |
commit | 1f2c9dd73f0a279214f9b3c382b3f1df272b3253 (patch) | |
tree | a8db48e07f457ed13bf8a74e4a9743a1acfd0142 /net/smc/smc_sysctl.h | |
parent | f8e80fc4acebab0447567e77d6abc30fb44250cc (diff) |
net/smc: add sysctl for max conns per lgr for SMC-R v2.1
Add a new sysctl: net.smc.smcr_max_conns_per_lgr, which is
used to control the preferred max connections per lgr for
SMC-R v2.1. The default value of this sysctl is 255, and
the acceptable value ranges from 16 to 255.
Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_sysctl.h')
-rw-r--r-- | net/smc/smc_sysctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_sysctl.h b/net/smc/smc_sysctl.h index 5783dd7575dd..eb2465ae1e15 100644 --- a/net/smc/smc_sysctl.h +++ b/net/smc/smc_sysctl.h @@ -24,6 +24,7 @@ static inline int smc_sysctl_net_init(struct net *net) { net->smc.sysctl_autocorking_size = SMC_AUTOCORKING_DEFAULT_SIZE; net->smc.sysctl_max_links_per_lgr = SMC_LINKS_PER_LGR_MAX_PREFER; + net->smc.sysctl_max_conns_per_lgr = SMC_CONN_PER_LGR_PREFER; return 0; } |