Fixes for SMC
Subsystems (5)
Tony Lu
reviewerv2 cover Fixes for SMC
There are some fixes for SMC.
v1->v2:
- fix wrong email address.
Tony Lu (1):
net/smc: Fix smc_link->llc_testlink_time overflow
Wen Gu (1):
net/smc: Correct spelling mistake to TCPF_SYN_RECV
net/smc/af_smc.c | 2 +- net/smc/smc_llc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.19.1.6.gb485710b
Tony Lu
reviewerPATCH v2 1/2 net/smc: Fix smc_link->llc_testlink_time overflow
The value of llc_testlink_time is set to the value stored in net->ipv4.sysctl_tcp_keepalive_time when linkgroup init. The value of sysctl_tcp_keepalive_time is already jiffies, so we don't need to multiply by HZ, which would cause smc_link->llc_testlink_time overflow, and test_link send flood.
---
v1->v2:
- fix wrong email address.
--- net/smc/smc_llc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/smc/smc_llc.c +1 -1
@@ -1822,7 +1822,7 @@ void smc_llc_link_active(struct smc_link *link) link->smcibdev->ibdev->name, link->ibport); link->state =SMC_LNK_ACTIVE ;if (link->lgr->llc_testlink_time) { - link->llc_testlink_time = link->lgr->llc_testlink_time *HZ ; + link->llc_testlink_time = link->lgr->llc_testlink_time;schedule_delayed_work (&link->llc_testlink_wrk, link->llc_testlink_time); }
Signature · 1 line
2.19.1.6.gb485710b
Tony Lu
reviewerPATCH v2 2/2 net/smc: Correct spelling mistake to TCPF_SYN_RECV
In reply to Tony LuFrom: Wen Gu <[email protected]>
There should use TCPF_SYN_RECV instead of TCP_SYN_RECV.
---
v1->v2:
- fix wrong email address.
--- net/smc/af_smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/smc/af_smc.c +1 -1
@@ -1057,7 +1057,7 @@ static void smc_connect_work(struct work_struct *work)if (smc->clcsock->sk->sk_err) { smc->sk.sk_err = smc->clcsock->sk->sk_err; }else if ((1 << smc->clcsock->sk->sk_state) & - (TCPF_SYN_SENT |TCP_SYN_RECV )) { + (TCPF_SYN_SENT |TCPF_SYN_RECV )) { rc =sk_stream_wait_connect (smc->clcsock->sk, &timeo); if ((rc == -EPIPE) && ((1 << smc->clcsock->sk->sk_state) &
Signature · 1 line
2.19.1.6.gb485710b
This series was applied to netdev/net.git (master) by David S. Miller <[email protected]>:
Hello:
This series was applied to netdev/net.git (master) by David S. Miller <[email protected]>:
Quoted 9 lines · On Thu, 28 Oct 2021 15:13:43 +0800 you wrote:
There are some fixes for SMC.
v1->v2:
- fix wrong email address.Tony Lu (1):
net/smc: Fixsmc_link->llc_testlink_timeoverflow[...]
Here is the summary with links:
- [net,v2,1/2] net/smc: Fix smc_link->llc_testlink_time overflow
https://git.kernel.org/netdev/net/c/c4a146c7cf5e - [net,v2,2/2] net/smc: Correct spelling mistake to TCPF_SYN_RECV https://git.kernel.org/netdev/net/c/f3a3a0fe0b64
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html