]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: smbd: Calculate the correct maximum packet size for segmented SMBDirect send...
authorLong Li <longli@microsoft.com>
Fri, 27 Mar 2020 02:42:24 +0000 (19:42 -0700)
committerSteve French <stfrench@microsoft.com>
Sun, 29 Mar 2020 21:41:49 +0000 (16:41 -0500)
commit21ce421f8e95972e8696db5cfa688a71b4f9c23b
treeee1829a8b037ae57a705bb4bfceee416768acf9a
parentae5ba71d875e0883ea74b08788799b76c821ca1b
cifs: smbd: Calculate the correct maximum packet size for segmented SMBDirect send/receive

The packet size needs to take account of SMB2 header size and possible
encryption header size. This is only done when signing is used and it is for
RDMA send/receive, not read/write.

Also remove the dead SMBD code in smb2_negotiate_r(w)size.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.h
fs/cifs/smbdirect.c