aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorGravatar Tom Talpey <tom@talpey.com> 2022-09-23 21:53:57 +0000
committerGravatar Steve French <stfrench@microsoft.com> 2022-10-05 01:30:20 -0500
commit3c62df55f3306238f36dc19cbe40b5e3d288d116 (patch)
tree7835c54523db51965bd46162a747955f1e1688d4 /fs/cifs
parentDecrease the number of SMB3 smbdirect client SGEs (diff)
downloadlinux-3c62df55f3306238f36dc19cbe40b5e3d288d116.tar.gz
linux-3c62df55f3306238f36dc19cbe40b5e3d288d116.tar.bz2
linux-3c62df55f3306238f36dc19cbe40b5e3d288d116.zip
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) <pc@cjr.nz> Signed-off-by: Tom Talpey <tom@talpey.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/smbdirect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index f81229721b76..4908ca54610c 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -90,7 +90,7 @@ int smbd_max_send_size = 1364;
int smbd_max_fragmented_recv_size = 1024 * 1024;
/* The maximum single-message size which can be received */
-int smbd_max_receive_size = 8192;
+int smbd_max_receive_size = 1364;
/* The timeout to initiate send of a keepalive message on idle */
int smbd_keep_alive_interval = 120;