aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ksmbd
diff options
context:
space:
mode:
authorTom Talpey <tom@talpey.com>2022-09-23 21:53:56 +0000
committerSteve French <stfrench@microsoft.com>2022-10-05 01:15:44 -0500
commit2b4eeeaa90617c5e37da7c804c422b4e833b87b2 (patch)
treeee525ccce508231e5508681ce313b24320229d17 /fs/ksmbd
parentksmbd: Fix wrong return value and message length check in smb2_ioctl() (diff)
downloadlinux-dev-2b4eeeaa90617c5e37da7c804c422b4e833b87b2.tar.xz
linux-dev-2b4eeeaa90617c5e37da7c804c422b4e833b87b2.zip
ksmbd: decrease the number of SMB3 smbdirect server SGEs
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>
Diffstat (limited to 'fs/ksmbd')
-rw-r--r--fs/ksmbd/transport_rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/transport_rdma.c b/fs/ksmbd/transport_rdma.c
index 35b55ee94fe5..494b8e5af4b3 100644
--- a/fs/ksmbd/transport_rdma.c
+++ b/fs/ksmbd/transport_rdma.c
@@ -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
/*