mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
qla2x00t-32gbit: display FC-NVMe port roles
Currently the FC-NVMe driver is leverating the SCSI FC transport class to
access the remote ports. Which means that all FC-NVMe remote ports will be
visible to the fc transport layer, but due to missing definitions the port
roles will always be 'unknown'. This patch adds the missing definitions to
the fc transport class to that the port roles are correctly displayed.
Upstream commit: a6a6d0589ac4 ("scsi: scsi_transport_fc: nvme: display FC-NVMe port roles").
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8313 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2249,7 +2249,10 @@ typedef enum {
|
||||
FCT_BROADCAST,
|
||||
FCT_INITIATOR,
|
||||
FCT_TARGET,
|
||||
FCT_NVME
|
||||
FCT_NVME_INITIATOR = 0x10,
|
||||
FCT_NVME_TARGET = 0x20,
|
||||
FCT_NVME_DISCOVERY = 0x40,
|
||||
FCT_NVME = 0xf0,
|
||||
} fc_port_type_t;
|
||||
|
||||
enum qla_sess_deletion {
|
||||
|
||||
@@ -6388,7 +6388,13 @@ int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport,
|
||||
fcport->d_id.b.rsvd_1 = 0;
|
||||
|
||||
if (fcport->fc4f_nvme) {
|
||||
fcport->port_type = FCT_NVME;
|
||||
fcport->port_type = 0;
|
||||
if ((pd->prli_svc_param_word_3[0] & BIT_5) == 0)
|
||||
fcport->port_type |= FCT_NVME_INITIATOR;
|
||||
if ((pd->prli_svc_param_word_3[0] & BIT_4) == 0)
|
||||
fcport->port_type |= FCT_NVME_TARGET;
|
||||
if ((pd->prli_svc_param_word_3[0] & BIT_3) == 0)
|
||||
fcport->port_type |= FCT_NVME_DISCOVERY;
|
||||
} else {
|
||||
/* If not target must be initiator or unknown type. */
|
||||
if ((pd->prli_svc_param_word_3[0] & BIT_4) == 0)
|
||||
|
||||
Reference in New Issue
Block a user