mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[SCSI] qla2xxx: No fcport FC-4 type assignment in GA_NXT response.
Signed-off-by: Armen Baloyan <[email protected]> Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
fa4926306a
commit
a72b990047
1 changed files with 3 additions and 0 deletions
|
|
@ -218,6 +218,9 @@ qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport)
|
|||
memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name,
|
||||
WWN_SIZE);
|
||||
|
||||
fcport->fc4_type = (ct_rsp->rsp.ga_nxt.fc4_types[2] & BIT_0) ?
|
||||
FC4_TYPE_FCP_SCSI : FC4_TYPE_OTHER;
|
||||
|
||||
if (ct_rsp->rsp.ga_nxt.port_type != NS_N_PORT_TYPE &&
|
||||
ct_rsp->rsp.ga_nxt.port_type != NS_NL_PORT_TYPE)
|
||||
fcport->d_id.b.domain = 0xf0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue