Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_iscsi_config.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2015, Emulex
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions and the following disclaimer in the documentation
13  * and/or other materials provided with the distribution.
14  *
15  * 3. Neither the name of the copyright holder nor the names of its contributors
16  * may be used to endorse or promote products derived from this software
17  * without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  *
31  */
32 
33 /**
34  * @file
35  * OCS iSCSI driver tuneable parameters
36  */
37 
38 #if !defined(__OCS_ISCSI_CONFIG_H__)
39 #define __OCS_ISCSI_CONFIG_H__
40 
41 /***************************************************************************
42  * Timeouts
43  */
44 #define OCS_ISCSI_CXN_RETRY_TIMER_NO_RESOURCES_MS 50
45 #define OCS_ISCSI_CXN_RETRY_TIMER_CONNECT_MS 5000
46 
47 
48 /***************************************************************************
49  * ISCSI parameters
50  */
51 #define OCS_ISCSI_TCP_PORT 3260
52 #define OCS_ISCSI_MAX_CXNS_PER_SESSION 4
53 #define OCS_ISCSI_MAX_QUEUED_CMDSN 64
54 #define OCS_ISCSI_MAX_ISCSI_NAME 256
55 #define OCS_ISCSI_MAX_ALIAS_SIZE 32
56 
57 /* iSCSI Login parameters */
58 #define OCS_ISCSI_LOGIN_PAYLOAD_SIZE 8192 /* Minimum Required by spec */
59 #define OCS_ISCSI_LOGIN_RETRY_ENTRIES (iscsi->num_cxns * 2)
60 #define OCS_ISCSI_LOGIN_MAX_BURST_LEN 65536 /* Max target size supported by FW */
61 #define OCS_ISCSI_LOGIN_MAX_RECV_DATA_SEG_LEN 65536
62 #define OCS_ISCSI_LOGIN_DEFAULT_TIME_2_WAIT 2
63 #define OCS_ISCSI_LOGIN_DEFAULT_TIME_2_RETAIN 0
64 
65 /***************************************************************************
66  * OS parameters
67  */
68 #define OCS_ISCSI_PAGE_SIZE 4096
69 #define OCS_ISCSI_CACHE_LINE_SIZE 32 /* used for object alignment */
70 
71 /***************************************************************************
72  * Watermark
73  */
74 #ifndef OCS_WATERMARK_HIGH_PCT
75 #define OCS_WATERMARK_HIGH_PCT 90
76 #endif
77 #ifndef OCS_WATERMARK_LOW_PCT
78 #define OCS_WATERMARK_LOW_PCT 80
79 #endif
80 #ifndef OCS_IO_WATERMARK_PER_INITIATOR
81 #define OCS_IO_WATERMARK_PER_INITIATOR 8
82 #endif
83 
84 #endif // __OCS_ISCSI_CONFIG_H__
85 
86 /* vim: set noexpandtab textwidth=120: */