Skip to content

Commit 3c62df5

Browse files
TTalpeysmfrench
authored andcommitted
Reduce client smbdirect max receive segment size
Reduce client smbdirect max segment receive size to 1364 to match protocol norms. Larger buffers are unnecessary and add significant memory overhead. Acked-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Tom Talpey <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent d2e81f9 commit 3c62df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/smbdirect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int smbd_max_send_size = 1364;
9090
int smbd_max_fragmented_recv_size = 1024 * 1024;
9191

9292
/* The maximum single-message size which can be received */
93-
int smbd_max_receive_size = 8192;
93+
int smbd_max_receive_size = 1364;
9494

9595
/* The timeout to initiate send of a keepalive message on idle */
9696
int smbd_keep_alive_interval = 120;

0 commit comments

Comments
 (0)