[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1708412505-34470-6-git-send-email-alibuda@linux.alibaba.com>
Date: Tue, 20 Feb 2024 15:01:30 +0800
From: "D. Wythe" <alibuda@...ux.alibaba.com>
To: kgraul@...ux.ibm.com,
wenjia@...ux.ibm.com,
jaka@...ux.ibm.com,
wintera@...ux.ibm.com,
guwen@...ux.alibaba.com
Cc: kuba@...nel.org,
davem@...emloft.net,
netdev@...r.kernel.org,
linux-s390@...r.kernel.org,
linux-rdma@...r.kernel.org,
tonylu@...ux.alibaba.com,
pabeni@...hat.com,
edumazet@...gle.com
Subject: [RFC net-next 05/20] net/smc: try test to fallback when ulp set
From: "D. Wythe" <alibuda@...ux.alibaba.com>
Currently, when the ULP option was seen, we will immediately
return a failure. Here we try to fallback first as much as possible,
rather than immediately returning.
Signed-off-by: D. Wythe <alibuda@...ux.alibaba.com>
---
net/smc/af_smc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c
index 7966d06..b7c9f5c 100644
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@ -3048,6 +3048,7 @@ static inline bool smc_is_unsupport_tcp_sockopt(int optname)
case TCP_FASTOPEN_CONNECT:
case TCP_FASTOPEN_KEY:
case TCP_FASTOPEN_NO_COOKIE:
+ case TCP_ULP:
return true;
}
return false;
@@ -3119,9 +3120,7 @@ static int smc_setsockopt(struct socket *sock, int level, int optname,
struct smc_sock *smc;
int rc;
- if (level == SOL_TCP && optname == TCP_ULP)
- return -EOPNOTSUPP;
- else if (level == SOL_SMC)
+ if (level == SOL_SMC)
return __smc_setsockopt(sock, level, optname, optval, optlen);
smc = smc_sk(sk);
--
1.8.3.1
Powered by blists - more mailing lists