2022-09-24 6:53 GMT+09:00, Tom Talpey <tom@xxxxxxxxxx>: > 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@xxxxxxxxxx> > --- > fs/ksmbd/transport_rdma.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/ksmbd/transport_rdma.c b/fs/ksmbd/transport_rdma.c > index 494b8e5af4b3..0315bca3d53b 100644 > --- a/fs/ksmbd/transport_rdma.c > +++ b/fs/ksmbd/transport_rdma.c > @@ -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; Can I know what value windows server set to ? I can see the following settings for them in MS-SMBD.pdf Connection.MaxSendSize is set to 1364. Connection.MaxReceiveSize is set to 8192. Why does the specification describe setting it to 8192? > > static int smb_direct_max_read_write_size = SMBD_DEFAULT_IOSIZE; > > -- > 2.34.1 > >