diff options
author | Guangguan Wang <guangguan.wang@linux.alibaba.com> | 2022-05-13 10:24:53 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-16 10:40:07 +0100 |
commit | 3aba103006bcc4a7472b7c9506b3bc065ffb7992 (patch) | |
tree | 3d897b9dd01cbd610f8192ca34074e83d5ea7832 /net/smc/smc_ib.c | |
parent | e97e68b56e78303581a03b26e95f6c0c03ecbbe2 (diff) | |
download | linux-3aba103006bcc4a7472b7c9506b3bc065ffb7992.tar.gz |
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/smc/smc_ib.c')
0 files changed, 0 insertions, 0 deletions