aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-05-27 07:16:33 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-07-25 03:18:45 -0400
commit123521830c0ea35055b900d2ff0b73bb129e08cb (patch)
treee0f2a4b46d6b7759a17b91f4953627b51ce20d5a /drivers/scsi/libiscsi.c
parentbbd9d6f7fbb0305c9a592bf05a32e87eb364a4ff (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/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 0c550d5b9133..c552cd7850ac 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -360,7 +360,7 @@ static int iscsi_prep_scsi_cmd_pdu(struct iscsi_task *task)
360 struct iscsi_conn *conn = task->conn; 360 struct iscsi_conn *conn = task->conn;
361 struct iscsi_session *session = conn->session; 361 struct iscsi_session *session = conn->session;
362 struct scsi_cmnd *sc = task->sc; 362 struct scsi_cmnd *sc = task->sc;
363 struct iscsi_cmd *hdr; 363 struct iscsi_scsi_req *hdr;
364 unsigned hdrlength, cmd_len; 364 unsigned hdrlength, cmd_len;
365 itt_t itt; 365 itt_t itt;
366 int rc; 366 int rc;
@@ -374,7 +374,7 @@ static int iscsi_prep_scsi_cmd_pdu(struct iscsi_task *task)
374 if (rc) 374 if (rc)
375 return rc; 375 return rc;
376 } 376 }
377 hdr = (struct iscsi_cmd *) task->hdr; 377 hdr = (struct iscsi_scsi_req *)task->hdr;
378 itt = hdr->itt; 378 itt = hdr->itt;
379 memset(hdr, 0, sizeof(*hdr)); 379 memset(hdr, 0, sizeof(*hdr));
380 380
@@ -830,7 +830,7 @@ static void iscsi_scsi_cmd_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
830 struct iscsi_task *task, char *data, 830 struct iscsi_task *task, char *data,
831 int datalen) 831 int datalen)
832{ 832{
833 struct iscsi_cmd_rsp *rhdr = (struct iscsi_cmd_rsp *)hdr; 833 struct iscsi_scsi_rsp *rhdr = (struct iscsi_scsi_rsp *)hdr;
834 struct iscsi_session *session = conn->session; 834 struct iscsi_session *session = conn->session;
835 struct scsi_cmnd *sc = task->sc; 835 struct scsi_cmnd *sc = task->sc;
836 836