aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-05-23 08:18:00 -0400
committerSteve French <smfrench@gmail.com>2012-07-24 11:25:23 -0400
commit28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977 (patch)
tree25f091cdd90fa160d0a10ce2798c7960bdfd051c /fs/cifs/cifsglob.h
parent2dc7e1c03316940dec899fa3206a595de000e99b (diff)
CIFS: Add SMB2 credits support
For SMB2 protocol we can add more than one credit for one received request: it depends on CreditRequest field in SMB2 response header. Also we divide all requests by type: echoes, oplocks and others. Each type uses its own slot pull. Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 3575f0f832b1..480b6385a9b6 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -343,6 +343,11 @@ struct TCP_Server_Info {
343 char server_GUID[16]; 343 char server_GUID[16];
344 __u16 sec_mode; 344 __u16 sec_mode;
345 bool session_estab; /* mark when very first sess is established */ 345 bool session_estab; /* mark when very first sess is established */
346#ifdef CONFIG_CIFS_SMB2
347 int echo_credits; /* echo reserved slots */
348 int oplock_credits; /* oplock break reserved slots */
349 bool echoes:1; /* enable echoes */
350#endif
346 u16 dialect; /* dialect index that server chose */ 351 u16 dialect; /* dialect index that server chose */
347 enum securityEnum secType; 352 enum securityEnum secType;
348 bool oplocks:1; /* enable oplocks */ 353 bool oplocks:1; /* enable oplocks */