summaryrefslogtreecommitdiffstats
path: root/fs/ksmbd
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2022-01-30 10:28:11 +0100
committerSteve French <stfrench@microsoft.com>2022-02-04 07:12:22 +0100
commitdeae24b0b13ff5f46022124fbfc2c72fc534bc6a (patch)
tree143758b148ac49146f55fa53f4e5c85ec5951ead /fs/ksmbd
parentksmbd: don't align last entry offset in smb2 query directory (diff)
downloadlinux-deae24b0b13ff5f46022124fbfc2c72fc534bc6a.tar.xz
linux-deae24b0b13ff5f46022124fbfc2c72fc534bc6a.zip
ksmbd: reduce smb direct max read/write size
ksmbd does not support more than one Buffer Descriptor V1 element in an smbdirect protocol request. Reducing the maximum read/write size to about 512KB allows interoperability with Windows over a wider variety of RDMA NICs, as an interim workaround. Reviewed-by: Tom Talpey <tom@talpey.com> Signed-off-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 3c1ec1ac0b27..ba5a22bc2e6d 100644
--- a/fs/ksmbd/transport_rdma.c
+++ b/fs/ksmbd/transport_rdma.c
@@ -80,7 +80,7 @@ static int smb_direct_max_fragmented_recv_size = 1024 * 1024;
/* The maximum single-message size which can be received */
static int smb_direct_max_receive_size = 8192;
-static int smb_direct_max_read_write_size = 1048512;
+static int smb_direct_max_read_write_size = 524224;
static int smb_direct_max_outstanding_rw_ops = 8;