Commit fcc5b5cd authored by Sawan Chandak's avatar Sawan Chandak Committed by Martin K. Petersen

scsi: qla2xxx: Use BIT_6 to acquire FAWWPN from switch

If FA-WWPN feature disabled on the switch side and enabled for the
adapter, then driver would update the port name with switch port name.

This patch fixes issue by checking correct BIT flag to validate.

Fixes: 41dc529a ("qla2xxx: Improve RSCN handling in driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarSawan Chandak <sawan.chandak@cavium.com>
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a1730595
...@@ -3682,7 +3682,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha, ...@@ -3682,7 +3682,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
if (qla_ini_mode_enabled(vha) && if (qla_ini_mode_enabled(vha) &&
ha->flags.fawwpn_enabled && ha->flags.fawwpn_enabled &&
(rptid_entry->u.f1.flags & (rptid_entry->u.f1.flags &
VP_FLAGS_NAME_VALID)) { BIT_6)) {
memcpy(vha->port_name, memcpy(vha->port_name,
rptid_entry->u.f1.port_name, rptid_entry->u.f1.port_name,
WWN_SIZE); WWN_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment