]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ksmbd: decrease the number of SMB3 smbdirect server SGEs
authorTom Talpey <tom@talpey.com>
Fri, 23 Sep 2022 21:53:56 +0000 (21:53 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 5 Oct 2022 06:15:44 +0000 (01:15 -0500)
The server-side SMBDirect layer requires no more than 6 send SGEs
The previous default of 8 causes ksmbd to fail on the SoftiWARP
(siw) provider, and possibly others. Additionally, large numbers
of SGEs reduces performance significantly on adapter implementations.

Signed-off-by: Tom Talpey <tom@talpey.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/transport_rdma.c

index 35b55ee94fe5496c18a8bb55503c2a2a2acd9cc1..494b8e5af4b3e51d7a7acae8254497d9a5d50710 100644 (file)
@@ -32,7 +32,7 @@
 /* SMB_DIRECT negotiation timeout in seconds */
 #define SMB_DIRECT_NEGOTIATE_TIMEOUT           120
 
-#define SMB_DIRECT_MAX_SEND_SGES               8
+#define SMB_DIRECT_MAX_SEND_SGES               6
 #define SMB_DIRECT_MAX_RECV_SGES               1
 
 /*