Message ID | 20211027085208.16048-4-tonylu@linux.alibaba.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Fixes for SMC | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Series has a cover letter |
netdev/fixes_present | success | Fixes tag present in non-next series |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | success | CCed 5 of 5 maintainers |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Signed-off-by tag matches author and committer |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Fixes tag looks correct |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | No static functions without inline keyword in header files |
On 27/10/2021 10:52, Tony Lu wrote: > From: Wen Gu <guwen@linux.alibaba.com> > > There should use TCPF_SYN_RECV instead of TCP_SYN_RECV. Thanks for fixing this, we will include your patch in our next submission to the netdev tree.
On Wed, Oct 27, 2021 at 12:23:34PM +0200, Karsten Graul wrote: > On 27/10/2021 10:52, Tony Lu wrote: > > From: Wen Gu <guwen@linux.alibaba.com> > > > > There should use TCPF_SYN_RECV instead of TCP_SYN_RECV. > > Thanks for fixing this, we will include your patch in our next submission > to the netdev tree. I will resend it in v2 patch to fix my wrong email address (tony.ly@linux.alibaba.com) to tonylu@linux.alibaba.com. Cheers, Tony Lu
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index c038efc23ce3..78b663dbfa1f 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@ -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) &