diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-05-27 07:16:33 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-07-25 03:18:45 -0400 |
commit | 123521830c0ea35055b900d2ff0b73bb129e08cb (patch) | |
tree | e0f2a4b46d6b7759a17b91f4953627b51ce20d5a /drivers/scsi/be2iscsi | |
parent | bbd9d6f7fbb0305c9a592bf05a32e87eb364a4ff (diff) |
iscsi: Resolve iscsi_proto.h naming conflicts with drivers/target/iscsi
This patch renames the following iscsi_proto.h structures to avoid
namespace issues with drivers/target/iscsi/iscsi_target_core.h:
*) struct iscsi_cmd -> struct iscsi_scsi_req
*) struct iscsi_cmd_rsp -> struct iscsi_scsi_rsp
*) struct iscsi_login -> struct iscsi_login_req
This patch includes useful ISCSI_FLAG_LOGIN_[CURRENT,NEXT]_STAGE*,
and ISCSI_FLAG_SNACK_TYPE_* definitions used by iscsi_target_mod, and
fixes the incorrect definition of struct iscsi_snack to following
RFC-3720 Section 10.16. SNACK Request.
Also, this patch updates libiscsi, iSER, be2iscsi, and bn2xi to
use the updated structure definitions in a handful of locations.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index 081c171a1ed6..5ce5170254ca 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h | |||
@@ -397,7 +397,7 @@ struct amap_pdu_data_out { | |||
397 | }; | 397 | }; |
398 | 398 | ||
399 | struct be_cmd_bhs { | 399 | struct be_cmd_bhs { |
400 | struct iscsi_cmd iscsi_hdr; | 400 | struct iscsi_scsi_req iscsi_hdr; |
401 | unsigned char pad1[16]; | 401 | unsigned char pad1[16]; |
402 | struct pdu_data_out iscsi_data_pdu; | 402 | struct pdu_data_out iscsi_data_pdu; |
403 | unsigned char pad2[BE_SENSE_INFO_SIZE - | 403 | unsigned char pad2[BE_SENSE_INFO_SIZE - |
@@ -428,7 +428,7 @@ struct be_nonio_bhs { | |||
428 | }; | 428 | }; |
429 | 429 | ||
430 | struct be_status_bhs { | 430 | struct be_status_bhs { |
431 | struct iscsi_cmd iscsi_hdr; | 431 | struct iscsi_scsi_req iscsi_hdr; |
432 | unsigned char pad1[16]; | 432 | unsigned char pad1[16]; |
433 | /** | 433 | /** |
434 | * The plus 2 below is to hold the sense info length that gets | 434 | * The plus 2 below is to hold the sense info length that gets |