diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-23 16:18:00 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 10:25:23 -0500 |
commit | 28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977 (patch) | |
tree | 25f091cdd90fa160d0a10ce2798c7960bdfd051c /fs/cifs/cifsglob.h | |
parent | 2dc7e1c03316940dec899fa3206a595de000e99b (diff) | |
download | op-kernel-dev-28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977.zip op-kernel-dev-28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977.tar.gz |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 3575f0f..480b638 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -343,6 +343,11 @@ struct TCP_Server_Info { char server_GUID[16]; __u16 sec_mode; bool session_estab; /* mark when very first sess is established */ +#ifdef CONFIG_CIFS_SMB2 + int echo_credits; /* echo reserved slots */ + int oplock_credits; /* oplock break reserved slots */ + bool echoes:1; /* enable echoes */ +#endif u16 dialect; /* dialect index that server chose */ enum securityEnum secType; bool oplocks:1; /* enable oplocks */ |