aboutsummaryrefslogtreecommitdiff
path: root/net/smc/smc_sysctl.h
diff options
context:
space:
mode:
authorGravatar Guangguan Wang <guangguan.wang@linux.alibaba.com> 2023-11-22 21:52:57 +0800
committerGravatar David S. Miller <davem@davemloft.net> 2023-11-24 12:13:14 +0000
commitf8e80fc4acebab0447567e77d6abc30fb44250cc (patch)
tree49c332a3d7f99990d267060ad453609d7f5a8255 /net/smc/smc_sysctl.h
parentocteontx2-pf: TC flower offload support for ICMP type and code (diff)
downloadlinux-f8e80fc4acebab0447567e77d6abc30fb44250cc.tar.gz
linux-f8e80fc4acebab0447567e77d6abc30fb44250cc.tar.bz2
linux-f8e80fc4acebab0447567e77d6abc30fb44250cc.zip
net/smc: add sysctl for max links per lgr for SMC-R v2.1
Add a new sysctl: net.smc.smcr_max_links_per_lgr, which is used to control the preferred max links per lgr for SMC-R v2.1. The default value of this sysctl is 2, and the acceptable value ranges from 1 to 2. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_sysctl.h b/net/smc/smc_sysctl.h
index 0becc11bd2f4..5783dd7575dd 100644
--- a/net/smc/smc_sysctl.h
+++ b/net/smc/smc_sysctl.h
@@ -23,6 +23,7 @@ void __net_exit smc_sysctl_net_exit(struct net *net);
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;
return 0;
}