summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorGuangguan Wang <guangguan.wang@linux.alibaba.com>2022-05-13 05:24:53 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-16 12:40:07 +0300
commit3aba103006bcc4a7472b7c9506b3bc065ffb7992 (patch)
tree3d897b9dd01cbd610f8192ca34074e83d5ea7832 /net/core
parente97e68b56e78303581a03b26e95f6c0c03ecbbe2 (diff)
downloadlinux-3aba103006bcc4a7472b7c9506b3bc065ffb7992.tar.xz
net/smc: align the connect behaviour with TCP
Connect with O_NONBLOCK will not be completed immediately and returns -EINPROGRESS. It is possible to use selector/poll for completion by selecting the socket for writing. After select indicates writability, a second connect function call will return 0 to indicate connected successfully as TCP does, but smc returns -EISCONN. Use socket state for smc to indicate connect state, which can help smc aligning the connect behaviour with TCP. Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com> Acked-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions