aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-12-13 13:43:20 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 19:28:19 -0500
commit843c0a8a76078cf961b244b839683d0667313740 (patch)
tree3feaf71c8e67f38e10e78e315bbc8623dcf38a3d /drivers/scsi/iscsi_tcp.h
parent8ae732a91df051aba6820068a47b631a06599d84 (diff)
[SCSI] libiscsi, iscsi_tcp: add device support
This patch adds logical unit reset support. This should work for ib_iser, but I have not finished testing that driver so it is not hooked in yet. This patch also temporarily reverts the iscsi_tcp r2t write out patch. That code is completely rewritten in this patchset. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r--drivers/scsi/iscsi_tcp.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h
index 68c36cc8997..7eba44df0a7 100644
--- a/drivers/scsi/iscsi_tcp.h
+++ b/drivers/scsi/iscsi_tcp.h
@@ -32,21 +32,21 @@
32#define IN_PROGRESS_PAD_RECV 0x4 32#define IN_PROGRESS_PAD_RECV 0x4
33 33
34/* xmit state machine */ 34/* xmit state machine */
35#define XMSTATE_VALUE_IDLE 0 35#define XMSTATE_IDLE 0x0
36#define XMSTATE_BIT_CMD_HDR_INIT 0 36#define XMSTATE_CMD_HDR_INIT 0x1
37#define XMSTATE_BIT_CMD_HDR_XMIT 1 37#define XMSTATE_CMD_HDR_XMIT 0x2
38#define XMSTATE_BIT_IMM_HDR 2 38#define XMSTATE_IMM_HDR 0x4
39#define XMSTATE_BIT_IMM_DATA 3 39#define XMSTATE_IMM_DATA 0x8
40#define XMSTATE_BIT_UNS_INIT 4 40#define XMSTATE_UNS_INIT 0x10
41#define XMSTATE_BIT_UNS_HDR 5 41#define XMSTATE_UNS_HDR 0x20
42#define XMSTATE_BIT_UNS_DATA 6 42#define XMSTATE_UNS_DATA 0x40
43#define XMSTATE_BIT_SOL_HDR 7 43#define XMSTATE_SOL_HDR 0x80
44#define XMSTATE_BIT_SOL_DATA 8 44#define XMSTATE_SOL_DATA 0x100
45#define XMSTATE_BIT_W_PAD 9 45#define XMSTATE_W_PAD 0x200
46#define XMSTATE_BIT_W_RESEND_PAD 10 46#define XMSTATE_W_RESEND_PAD 0x400
47#define XMSTATE_BIT_W_RESEND_DATA_DIGEST 11 47#define XMSTATE_W_RESEND_DATA_DIGEST 0x800
48#define XMSTATE_BIT_IMM_HDR_INIT 12 48#define XMSTATE_IMM_HDR_INIT 0x1000
49#define XMSTATE_BIT_SOL_HDR_INIT 13 49#define XMSTATE_SOL_HDR_INIT 0x2000
50 50
51#define ISCSI_PAD_LEN 4 51#define ISCSI_PAD_LEN 4
52#define ISCSI_SG_TABLESIZE SG_ALL 52#define ISCSI_SG_TABLESIZE SG_ALL
@@ -122,7 +122,7 @@ struct iscsi_data_task {
122struct iscsi_tcp_mgmt_task { 122struct iscsi_tcp_mgmt_task {
123 struct iscsi_hdr hdr; 123 struct iscsi_hdr hdr;
124 char hdrext[sizeof(__u32)]; /* Header-Digest */ 124 char hdrext[sizeof(__u32)]; /* Header-Digest */
125 unsigned long xmstate; /* mgmt xmit progress */ 125 int xmstate; /* mgmt xmit progress */
126 struct iscsi_buf headbuf; /* header buffer */ 126 struct iscsi_buf headbuf; /* header buffer */
127 struct iscsi_buf sendbuf; /* in progress buffer */ 127 struct iscsi_buf sendbuf; /* in progress buffer */
128 int sent; 128 int sent;
@@ -150,7 +150,7 @@ struct iscsi_tcp_cmd_task {
150 int pad_count; /* padded bytes */ 150 int pad_count; /* padded bytes */
151 struct iscsi_buf headbuf; /* header buf (xmit) */ 151 struct iscsi_buf headbuf; /* header buf (xmit) */
152 struct iscsi_buf sendbuf; /* in progress buffer*/ 152 struct iscsi_buf sendbuf; /* in progress buffer*/
153 unsigned long xmstate; /* xmit xtate machine */ 153 int xmstate; /* xmit xtate machine */
154 int sent; 154 int sent;
155 struct scatterlist *sg; /* per-cmd SG list */ 155 struct scatterlist *sg; /* per-cmd SG list */
156 struct scatterlist *bad_sg; /* assert statement */ 156 struct scatterlist *bad_sg; /* assert statement */