mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
ksmbd: reduce server smbdirect max send/receive segment sizes
[ Upstream commit 78af146e10 ]
Reduce ksmbd smbdirect max segment send and receive size to 1364
to match protocol norms. Larger buffers are unnecessary and add
significant memory overhead.
Signed-off-by: Tom Talpey <tom@talpey.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
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
fe4d09792b
commit
507cb106c3
@@ -62,13 +62,13 @@ static int smb_direct_receive_credit_max = 255;
|
||||
static int smb_direct_send_credit_target = 255;
|
||||
|
||||
/* The maximum single message size can be sent to remote peer */
|
||||
static int smb_direct_max_send_size = 8192;
|
||||
static int smb_direct_max_send_size = 1364;
|
||||
|
||||
/* The maximum fragmented upper-layer payload receive size supported */
|
||||
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_receive_size = 1364;
|
||||
|
||||
static int smb_direct_max_read_write_size = SMBD_DEFAULT_IOSIZE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user