diff options
Diffstat (limited to 'kernel/fs/cifs/smb2glob.h')
-rw-r--r-- | kernel/fs/cifs/smb2glob.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/fs/cifs/smb2glob.h b/kernel/fs/cifs/smb2glob.h index bc0bb9c34..238759c14 100644 --- a/kernel/fs/cifs/smb2glob.h +++ b/kernel/fs/cifs/smb2glob.h @@ -44,6 +44,7 @@ #define SMB2_OP_DELETE 7 #define SMB2_OP_HARDLINK 8 #define SMB2_OP_SET_EOF 9 +#define SMB2_OP_RMDIR 10 /* Used when constructing chained read requests. */ #define CHAINED_REQUEST 1 @@ -60,4 +61,14 @@ /* Maximum buffer size value we can send with 1 credit */ #define SMB2_MAX_BUFFER_SIZE 65536 +/* + * Maximum number of credits to keep available. + * This value is chosen somewhat arbitrarily. The Windows client + * defaults to 128 credits, the Windows server allows clients up to + * 512 credits, and the NetApp server does not limit clients at all. + * Choose a high enough value such that the client shouldn't limit + * performance. + */ +#define SMB2_MAX_CREDITS_AVAILABLE 32000 + #endif /* _SMB2_GLOB_H */ |