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)
commitf7950cb05d060b00db5e6102261417cef26c5789
treeee1829a8b037ae57a705bb4bfceee416768acf9a
parentedad734c74a4ab6ba8531186054779b2382df3fd
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