aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r--drivers/scsi/iscsi_tcp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h
index 32736831790e..7eba44df0a7f 100644
--- a/drivers/scsi/iscsi_tcp.h
+++ b/drivers/scsi/iscsi_tcp.h
@@ -29,11 +29,12 @@
29#define IN_PROGRESS_HEADER_GATHER 0x1 29#define IN_PROGRESS_HEADER_GATHER 0x1
30#define IN_PROGRESS_DATA_RECV 0x2 30#define IN_PROGRESS_DATA_RECV 0x2
31#define IN_PROGRESS_DDIGEST_RECV 0x3 31#define IN_PROGRESS_DDIGEST_RECV 0x3
32#define IN_PROGRESS_PAD_RECV 0x4
32 33
33/* xmit state machine */ 34/* xmit state machine */
34#define XMSTATE_IDLE 0x0 35#define XMSTATE_IDLE 0x0
35#define XMSTATE_R_HDR 0x1 36#define XMSTATE_CMD_HDR_INIT 0x1
36#define XMSTATE_W_HDR 0x2 37#define XMSTATE_CMD_HDR_XMIT 0x2
37#define XMSTATE_IMM_HDR 0x4 38#define XMSTATE_IMM_HDR 0x4
38#define XMSTATE_IMM_DATA 0x8 39#define XMSTATE_IMM_DATA 0x8
39#define XMSTATE_UNS_INIT 0x10 40#define XMSTATE_UNS_INIT 0x10
@@ -44,6 +45,8 @@
44#define XMSTATE_W_PAD 0x200 45#define XMSTATE_W_PAD 0x200
45#define XMSTATE_W_RESEND_PAD 0x400 46#define XMSTATE_W_RESEND_PAD 0x400
46#define XMSTATE_W_RESEND_DATA_DIGEST 0x800 47#define XMSTATE_W_RESEND_DATA_DIGEST 0x800
48#define XMSTATE_IMM_HDR_INIT 0x1000
49#define XMSTATE_SOL_HDR_INIT 0x2000
47 50
48#define ISCSI_PAD_LEN 4 51#define ISCSI_PAD_LEN 4
49#define ISCSI_SG_TABLESIZE SG_ALL 52#define ISCSI_SG_TABLESIZE SG_ALL
@@ -152,7 +155,7 @@ struct iscsi_tcp_cmd_task {
152 struct scatterlist *sg; /* per-cmd SG list */ 155 struct scatterlist *sg; /* per-cmd SG list */
153 struct scatterlist *bad_sg; /* assert statement */ 156 struct scatterlist *bad_sg; /* assert statement */
154 int sg_count; /* SG's to process */ 157 int sg_count; /* SG's to process */
155 uint32_t exp_r2tsn; 158 uint32_t exp_datasn; /* expected target's R2TSN/DataSN */
156 int data_offset; 159 int data_offset;
157 struct iscsi_r2t_info *r2t; /* in progress R2T */ 160 struct iscsi_r2t_info *r2t; /* in progress R2T */
158 struct iscsi_queue r2tpool; 161 struct iscsi_queue r2tpool;