]> git.dujemihanovic.xyz Git - linux.git/commit
net/smc: add sysctl for smc_limit_hs
authorD. Wythe <alibuda@linux.alibaba.com>
Fri, 6 Sep 2024 02:35:35 +0000 (10:35 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Sep 2024 10:11:04 +0000 (12:11 +0200)
commitf8406a2fd279d05eb4a76c9b77cb740b6f350549
tree11274d55b1b47218e94e99607decc1b2db843dad
parent0246388b9b7963babbdc0960d1f5bef676611346
net/smc: add sysctl for smc_limit_hs

In commit 48b6190a0042 ("net/smc: Limit SMC visits when handshake workqueue congested"),
we introduce a mechanism to put constraint on SMC connections visit
according to the pressure of SMC handshake process.

At that time, we believed that controlling the feature through netlink
was sufficient. However, most people have realized now that netlink is
not convenient in container scenarios, and sysctl is a more suitable
approach.

In addition, since commit 462791bbfa35 ("net/smc: add sysctl interface for SMC")
had introcuded smc_sysctl_net_init(), it is reasonable for us to
initialize limit_smc_hs in it instead of initializing it in
smc_pnet_net_int().

Signed-off-by: D. Wythe <alibuda@linux.alibaba.com>
Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Jan Karcher <jaka@linux.ibm.com>
Link: https://patch.msgid.link/1725590135-5631-1-git-send-email-alibuda@linux.alibaba.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/smc/smc_pnet.c
net/smc/smc_sysctl.c