summaryrefslogtreecommitdiff
path: root/usr/iscsi_settings.h
blob: 4ff4a6debe5d0f28dfac12464319d5a41e31cb82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Default initiator settings. These may not be the same as
 * in the RFC. See iscsi_proto.h for those.
 */
/* timeouts in seconds */
#define DEF_LOGIN_TIMEO		15
#define DEF_LOGOUT_TIMEO	15
#define DEF_NOOP_OUT_INTERVAL	10
#define DEF_NOOP_OUT_TIMEO	15
#define DEF_REPLACEMENT_TIMEO	120

/* q depths */
#define CMDS_MAX	128
#define QUEUE_DEPTH	32

/* interface */
#define DEFAULT_HWADDRESS	"default"
#define DEFAULT_TRANSPORT	"tcp"

#define PORTAL_GROUP_TAG_UNKNOWN -1

/* default window size */
#define TCP_WINDOW_SIZE (512 * 1024)

/* default iSCSI port number */
#define ISCSI_DEFAULT_PORT 3260

/* data and segment lengths in bytes */
#define DEF_INI_FIRST_BURST_LEN		262144
#define DEF_INI_MAX_BURST_LEN		16776192
#define DEF_INI_MAX_RECV_SEG_LEN	131072
#define DEF_INI_DISC_MAX_RECV_SEG_LEN	32768