aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmen Baloyan <armen.baloyan@qlogic.com>2012-11-21 02:40:30 -0500
committerJames Bottomley <JBottomley@Parallels.com>2012-11-30 06:54:21 -0500
commita72b990047f42f9b3c000f22e7678acd83642acf (patch)
tree67d592476f87ce3b807608cd24c1dafd56462cc4
parentfa4926306a8ea67a1cdd4f6b3407a23653dab0d2 (diff)
[SCSI] qla2xxx: No fcport FC-4 type assignment in GA_NXT response.
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_gs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c
index f4e4bd7c3f4..c51929cb9a5 100644
--- a/drivers/scsi/qla2xxx/qla_gs.c
+++ b/drivers/scsi/qla2xxx/qla_gs.c
@@ -218,6 +218,9 @@ qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport)
218 memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name, 218 memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name,
219 WWN_SIZE); 219 WWN_SIZE);
220 220
221 fcport->fc4_type = (ct_rsp->rsp.ga_nxt.fc4_types[2] & BIT_0) ?
222 FC4_TYPE_FCP_SCSI : FC4_TYPE_OTHER;
223
221 if (ct_rsp->rsp.ga_nxt.port_type != NS_N_PORT_TYPE && 224 if (ct_rsp->rsp.ga_nxt.port_type != NS_N_PORT_TYPE &&
222 ct_rsp->rsp.ga_nxt.port_type != NS_NL_PORT_TYPE) 225 ct_rsp->rsp.ga_nxt.port_type != NS_NL_PORT_TYPE)
223 fcport->d_id.b.domain = 0xf0; 226 fcport->d_id.b.domain = 0xf0;