linux/drivers/scsi/qla2xxx
Roland Dreier c046aa0f0f tcm_qla2xxx: Format VPD page 83h SCSI name string according to SPC
My draft of SPC-4 says the following about the SCSI name string in
inquiry VPD page 83h:

    The SCSI NAME STRING field starts with either:

    a) the four UTF-8 characters 'eui.' concatenated with 16, 24, or
       32 hexadecimal digits (i.e., the UTF-8 characters 0 through 9
       and A through F) for an EUI-64 based identifier (see
       7.8.6.5). The first hexadecimal digit shall be the most
       significant four bits of the first byte (i.e., most significant
       byte) of the EUI-64 based identifier;
    b) the four UTF-8 characters 'naa.' concatenated with 16 or 32
       hexadecimal digits for an NAA identifier (see 7.8.6.6). The
       first hexadecimal digit shall be the most significant four bits
       of the first byte (i.e., most significant byte) of the NAA
       identifier; or
    c) the four UTF-8 characters 'iqn.' concatenated with an iSCSI
       Name for an iSCSI-name based identifier (see iSCSI).

However, the .tpg_get_wwn method for tcm_qla2xxx formats the WWN so
the SCSI name string looks like "52:4a:93:7d:24:5f:b2:12,t,0x0001".
This patch corrects the code so that VPD 83h gives a SPC-compliant
SCSI name string like "naa.524a937d245fb212,t,0x0001" while leavig
other uses alone (so configfs will still work with ':' separated WWNs).

Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Cc: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-10-26 12:29:46 -07:00
..
Kconfig [SCSI] tcm_qla2xxx: Add >= 24xx series fabric module for target-core 2012-05-22 11:49:20 +01:00
Makefile [SCSI] tcm_qla2xxx: Add >= 24xx series fabric module for target-core 2012-05-22 11:49:20 +01:00
qla_attr.c [SCSI] qla2xxx: T10 DIF - ISP83xx changes. 2012-09-24 12:10:54 +04:00
qla_bsg.c [SCSI] qla2xxx: Fix for handling some error conditions in loopback. 2012-09-24 12:10:52 +04:00
qla_bsg.h [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_dbg.c [SCSI] qla2xxx: T10 DIF - ISP83xx changes. 2012-09-24 12:10:54 +04:00
qla_dbg.h [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_def.h [SCSI] qla2xxx: T10 DIF - ISP83xx changes. 2012-09-24 12:10:54 +04:00
qla_devtbl.h [SCSI] qla2xxx: fix Kernel Panic with Qlogic 2472 Card. 2009-02-10 11:15:18 -05:00
qla_dfs.c [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_fw.h [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_gbl.h [SCSI] qla2xxx: Wrong PCIe(2.5Gb/s x8) speed in the kerenel message for ISP82xx. 2012-09-24 12:10:50 +04:00
qla_gs.c [SCSI] qla2xxx: Ensure PLOGI is sent to Fabric Management-Server upon request. 2012-09-24 12:10:51 +04:00
qla_init.c [SCSI] qla2xxx: fix potential deadlock on ha->hardware_lock 2012-10-09 12:27:25 +01:00
qla_inline.h [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_iocb.c [SCSI] qla2xxx: T10 DIF - ISP83xx changes. 2012-09-24 12:10:54 +04:00
qla_isr.c [SCSI] qla2xxx: Allow MSI interrupt registration for ISP82xx. 2012-09-24 12:10:55 +04:00
qla_mbx.c [SCSI] qla2xxx: Enable fw attributes for ISP24xx and above. 2012-09-24 12:10:53 +04:00
qla_mid.c qla2xxx: Add missing ->vport_slock while calling qlt_update_vp_map 2012-10-26 12:29:46 -07:00
qla_nx.c SCSI for-linus on 20121002 2012-10-02 19:01:32 -07:00
qla_nx.h [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_os.c SCSI for-linus on 20121002 2012-10-02 19:01:32 -07:00
qla_settings.h [SCSI] qla2xxx: Update the driver copyright. 2012-09-24 12:10:49 +04:00
qla_sup.c [SCSI] qla2xxx: Implement beacon support for ISP83xx. 2012-09-24 12:10:49 +04:00
qla_target.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2012-10-10 19:52:19 +09:00
qla_target.h qla2xxx: Get rid of redundant qla_tgt_sess.tearing_down 2012-07-16 17:35:25 -07:00
qla_version.h [SCSI] qla2xxx: Update version number to 8.04.00.07-k. 2012-09-24 12:10:55 +04:00
tcm_qla2xxx.c tcm_qla2xxx: Format VPD page 83h SCSI name string according to SPC 2012-10-26 12:29:46 -07:00
tcm_qla2xxx.h tcm_qla2xxx: Format VPD page 83h SCSI name string according to SPC 2012-10-26 12:29:46 -07:00