]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ksmbd: reduce smb direct max read/write size
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 30 Jan 2022 09:28:11 +0000 (18:28 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 4 Feb 2022 06:12:22 +0000 (00:12 -0600)
commitdeae24b0b13ff5f46022124fbfc2c72fc534bc6a
tree143758b148ac49146f55fa53f4e5c85ec5951ead
parent04e260948a160d3b7d622bf4c8a96fa4577c09bd
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>
fs/ksmbd/transport_rdma.c