]> git.baikalelectronics.ru Git - kernel.git/commit
Negotiate and save preferred compression algorithms
authorSteve French <smfrench@gmail.com>
Sat, 27 Apr 2019 03:36:08 +0000 (20:36 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:55 +0000 (23:24 -0500)
commit2b2a685b5897f50ce969d59bc397a743422aa6b4
tree5021f89c94babeac98e67aeac765f0590cdf71c8
parent5153735fbe0576e9a4dee3e0e76c458789c84b0c
Negotiate and save preferred compression algorithms

New negotiate context (3) allows the server and client to
negotiate which compression algorithms to use. Add support
for this and save it off in the server structure.

Also now displayed in /proc/fs/cifs/DebugData (see below example
to Windows 10) where compression algoirthm "LZ77" was negotiated:

Servers:
Number of credits: 326 Dialect 0x311 COMPRESS_LZ77 signed
1) Name: 192.168.92.17 Uses: 1 Capability: 0x300067 Session Status: 1 TCP status: 1 Instance: 1

See MS-XCA and MS-SMB2 2.2.3.1 for more details.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifs_debug.c
fs/cifs/cifsglob.h
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h