summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/cifsglob.h
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2024-02-23 11:58:57 -0300
committerSteve French <stfrench@microsoft.com>2024-03-10 19:52:42 -0500
commit8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7 (patch)
treee18865670d456f31c3546d5401223de10c42a7eb /fs/smb/client/cifsglob.h
parent073dd87c8e1ee55ca163956f0c71249dc28aac51 (diff)
downloadlinux-stable-8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7.tar.gz
linux-stable-8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7.tar.bz2
linux-stable-8fe7062b7d11fcd21c4dcb5f530eaa1a099b24e7.zip
smb: client: negotiate compression algorithms
Change "compress=" mount option to a boolean flag, that, if set, will enable negotiating compression algorithms with the server. Do not de/compress anything for now. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r--fs/smb/client/cifsglob.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h
index a0506a45eae3..8be62ed053a2 100644
--- a/fs/smb/client/cifsglob.h
+++ b/fs/smb/client/cifsglob.h
@@ -769,7 +769,11 @@ struct TCP_Server_Info {
unsigned int max_write;
unsigned int min_offload;
unsigned int retrans;
- __le16 compress_algorithm;
+ struct {
+ bool requested; /* "compress" mount option set*/
+ bool enabled; /* actually negotiated with server */
+ __le16 alg; /* preferred alg negotiated with server */
+ } compression;
__u16 signing_algorithm;
__le16 cipher_type;
/* save initital negprot hash */