diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2008-05-26 04:31:19 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:23 -0400 |
commit | 30e9ba9f2001f45960507f1963551311a67d0209 (patch) | |
tree | 6445dc94b672e8647697582c59d17de70b4c23ec /include | |
parent | 8f333991ba8479fe8a9d72aea978db415e3c2f2a (diff) |
[SCSI] iscsi_tcp: Enable any size command
Let through upto the largest command of 260 defined by the scsi standard.
iscsi core supports this already. Now that the scsi-ml supports it we can
start using large commands.
[jejb:rejections fixed up]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/iscsi_proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/iscsi_proto.h b/include/scsi/iscsi_proto.h index e0593bfae622..f2a2c1169486 100644 --- a/include/scsi/iscsi_proto.h +++ b/include/scsi/iscsi_proto.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define ISCSI_PROTO_H | 22 | #define ISCSI_PROTO_H |
23 | 23 | ||
24 | #include <linux/types.h> | 24 | #include <linux/types.h> |
25 | #include <scsi/scsi.h> | ||
25 | 26 | ||
26 | #define ISCSI_DRAFT20_VERSION 0x00 | 27 | #define ISCSI_DRAFT20_VERSION 0x00 |
27 | 28 | ||
@@ -156,7 +157,7 @@ struct iscsi_ecdb_ahdr { | |||
156 | uint8_t ahstype; | 157 | uint8_t ahstype; |
157 | uint8_t reserved; | 158 | uint8_t reserved; |
158 | /* 4-byte aligned extended CDB spillover */ | 159 | /* 4-byte aligned extended CDB spillover */ |
159 | uint8_t ecdb[260 - ISCSI_CDB_SIZE]; | 160 | uint8_t ecdb[SCSI_MAX_VARLEN_CDB_SIZE - ISCSI_CDB_SIZE]; |
160 | }; | 161 | }; |
161 | 162 | ||
162 | /* SCSI Response Header */ | 163 | /* SCSI Response Header */ |