CIFS: Send RFC1001 length in a separate iov
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 23 Nov 2016 23:14:57 +0000 (15:14 -0800)
committerSteve French <smfrench@gmail.com>
Wed, 1 Feb 2017 22:46:35 +0000 (16:46 -0600)
commit738f9de5cdb9175c19d24cfdf90b4543fc3b47bf
tree121fd4b54bec97e745cf6e6beb093b34408afd17
parentfb2036d817584df42504910fe104f68517e8990e
CIFS: Send RFC1001 length in a separate iov

In order to simplify further encryption support we need to separate
RFC1001 length and SMB2 header when sending a request. Put the length
field in iov[0] and the rest of the packet into following iovs.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/smb2pdu.c
fs/cifs/smb2transport.c
fs/cifs/transport.c