mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
ksmbd: smbd: change the default maximum read/write, receive size
[ Upstream commit 4d02c4fdc0 ]
Due to restriction that cannot handle multiple
buffer descriptor structures, decrease the maximum
read/write size for Windows clients.
And set the maximum fragmented receive size
in consideration of the receive queue size.
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ba7c3ff905
commit
d15077ad35
@@ -1914,7 +1914,9 @@ static int smb_direct_prepare(struct ksmbd_transport *t)
|
||||
st->max_send_size = min_t(int, st->max_send_size,
|
||||
le32_to_cpu(req->max_receive_size));
|
||||
st->max_fragmented_send_size =
|
||||
le32_to_cpu(req->max_fragmented_size);
|
||||
le32_to_cpu(req->max_fragmented_size);
|
||||
st->max_fragmented_recv_size =
|
||||
(st->recv_credit_max * st->max_recv_size) / 2;
|
||||
|
||||
ret = smb_direct_send_negotiate_response(st, ret);
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user