]> git.ipfire.org Git - thirdparty/linux.git/commit
ksmbd: negotiate and decode SMB2 compression
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 10 Jun 2026 09:46:00 +0000 (18:46 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 16 Jun 2026 23:57:22 +0000 (18:57 -0500)
commita08de24c2b8568a26b560cda411284295decb3ba
tree7d0cf48dbe4759f8a251128b6136e1793ab8f8b3
parent17e12b1d14134d88d39a7a366391280e6775c2d6
ksmbd: negotiate and decode SMB2 compression

Parse the SMB 3.1.1 compression capabilities context and negotiate LZ77
with optional chained Pattern_V1 support.

Advertise compression on tree connections and decode compressed requests
before normal SMB dispatch.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/Makefile
fs/smb/server/compress.c [new file with mode: 0644]
fs/smb/server/compress.h [new file with mode: 0644]
fs/smb/server/connection.c
fs/smb/server/connection.h
fs/smb/server/smb2pdu.c
fs/smb/server/smb_common.c