summaryrefslogtreecommitdiff
path: root/fs/ksmbd/ksmbd_netlink.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2022-12-29 12:33:25 +0300
committerSteve French <stfrench@microsoft.com>2023-01-21 00:27:48 +0300
commit0d0d4680db22eda1eea785c47bbf66a9b33a8b16 (patch)
treeda97725ca4ace573bff0f23b95fdf17bc53f7803 /fs/ksmbd/ksmbd_netlink.h
parent5dc4c995db9eb45f6373a956eb1f69460e69e6d4 (diff)
downloadlinux-0d0d4680db22eda1eea785c47bbf66a9b33a8b16.tar.xz
ksmbd: add max connections parameter
Add max connections parameter to limit number of maximum simultaneous connections. Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers") Cc: stable@vger.kernel.org Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/ksmbd_netlink.h')
-rw-r--r--fs/ksmbd/ksmbd_netlink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ksmbd/ksmbd_netlink.h b/fs/ksmbd/ksmbd_netlink.h
index b6bd8311e6b4..fb8b2d566efb 100644
--- a/fs/ksmbd/ksmbd_netlink.h
+++ b/fs/ksmbd/ksmbd_netlink.h
@@ -106,7 +106,8 @@ struct ksmbd_startup_request {
__u32 sub_auth[3]; /* Subauth value for Security ID */
__u32 smb2_max_credits; /* MAX credits */
__u32 smbd_max_io_size; /* smbd read write size */
- __u32 reserved[127]; /* Reserved room */
+ __u32 max_connections; /* Number of maximum simultaneous connections */
+ __u32 reserved[126]; /* Reserved room */
__u32 ifc_list_sz; /* interfaces list size */
__s8 ____payload[];
};