diff options
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r-- | drivers/scsi/iscsi_tcp.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h index f1c541151100..eb3784f949fd 100644 --- a/drivers/scsi/iscsi_tcp.h +++ b/drivers/scsi/iscsi_tcp.h | |||
@@ -41,7 +41,6 @@ | |||
41 | #define XMSTATE_IMM_HDR_INIT 0x1000 | 41 | #define XMSTATE_IMM_HDR_INIT 0x1000 |
42 | #define XMSTATE_SOL_HDR_INIT 0x2000 | 42 | #define XMSTATE_SOL_HDR_INIT 0x2000 |
43 | 43 | ||
44 | #define ISCSI_PAD_LEN 4 | ||
45 | #define ISCSI_SG_TABLESIZE SG_ALL | 44 | #define ISCSI_SG_TABLESIZE SG_ALL |
46 | #define ISCSI_TCP_MAX_CMD_LEN 16 | 45 | #define ISCSI_TCP_MAX_CMD_LEN 16 |
47 | 46 | ||
@@ -130,14 +129,14 @@ struct iscsi_buf { | |||
130 | 129 | ||
131 | struct iscsi_data_task { | 130 | struct iscsi_data_task { |
132 | struct iscsi_data hdr; /* PDU */ | 131 | struct iscsi_data hdr; /* PDU */ |
133 | char hdrext[sizeof(__u32)]; /* Header-Digest */ | 132 | char hdrext[ISCSI_DIGEST_SIZE];/* Header-Digest */ |
134 | struct iscsi_buf digestbuf; /* digest buffer */ | 133 | struct iscsi_buf digestbuf; /* digest buffer */ |
135 | uint32_t digest; /* data digest */ | 134 | uint32_t digest; /* data digest */ |
136 | }; | 135 | }; |
137 | 136 | ||
138 | struct iscsi_tcp_mgmt_task { | 137 | struct iscsi_tcp_mgmt_task { |
139 | struct iscsi_hdr hdr; | 138 | struct iscsi_hdr hdr; |
140 | char hdrext[sizeof(__u32)]; /* Header-Digest */ | 139 | char hdrext[ISCSI_DIGEST_SIZE]; /* Header-Digest */ |
141 | int xmstate; /* mgmt xmit progress */ | 140 | int xmstate; /* mgmt xmit progress */ |
142 | struct iscsi_buf headbuf; /* header buffer */ | 141 | struct iscsi_buf headbuf; /* header buffer */ |
143 | struct iscsi_buf sendbuf; /* in progress buffer */ | 142 | struct iscsi_buf sendbuf; /* in progress buffer */ |
@@ -159,9 +158,11 @@ struct iscsi_r2t_info { | |||
159 | }; | 158 | }; |
160 | 159 | ||
161 | struct iscsi_tcp_cmd_task { | 160 | struct iscsi_tcp_cmd_task { |
162 | struct iscsi_cmd hdr; | 161 | struct iscsi_hdr_buff { |
163 | char hdrext[4*sizeof(__u16)+ /* AHS */ | 162 | struct iscsi_cmd cmd_hdr; |
164 | sizeof(__u32)]; /* HeaderDigest */ | 163 | char hdrextbuf[ISCSI_MAX_AHS_SIZE + |
164 | ISCSI_DIGEST_SIZE]; | ||
165 | } hdr; | ||
165 | char pad[ISCSI_PAD_LEN]; | 166 | char pad[ISCSI_PAD_LEN]; |
166 | int pad_count; /* padded bytes */ | 167 | int pad_count; /* padded bytes */ |
167 | struct iscsi_buf headbuf; /* header buf (xmit) */ | 168 | struct iscsi_buf headbuf; /* header buf (xmit) */ |