]> git.hungrycats.org Git - linux/commit
cifs: negotiate chained SMB2 compression capabilities
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 10 Jun 2026 14:40:58 +0000 (23:40 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 16 Jun 2026 23:57:21 +0000 (18:57 -0500)
commit17e12b1d14134d88d39a7a366391280e6775c2d6
treec2eb6a8e8566b9e99753aa2e5a41bac67a2783d3
parent6234f50105fbb0fffe878b6b493325d67822e43b
cifs: negotiate chained SMB2 compression capabilities

Advertise LZ77 and Pattern_V1 with chained transform support in the
SMB 3.1.1 compression negotiate context. Validate the server's returned
algorithm list and flags, then retain the negotiated capabilities for a
future compressed transform receive implementation.

This patch only negotiates capabilities. It does not request compressed
READ responses or add a compressed transform receive path.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/smb2pdu.c