diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-03-02 07:09:06 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 13:58:22 -0400 |
commit | 0282985da5923fa6365adcc1a1586ae0c13c1617 (patch) | |
tree | 8cb72f045ca88d55da46dccbe1a2e8c470a5c021 /drivers/s390 | |
parent | 6d1a27f630f1d30bf85c61ec0436c287d0945fcc (diff) |
[SCSI] zfcp: Report fc_host_port_type as NPIV
Report the fc_host_port_type as FC_PORTTYPE_NPIV when the subchannel
is running in NPIV mode. This allows to see the correct type with
lsscsi -H -t --list
Acked-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 9fa8c8990a11..b29f3121b666 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -617,9 +617,10 @@ static void zfcp_fsf_exchange_port_evaluate(struct zfcp_fsf_req *req) | |||
617 | if (req->data) | 617 | if (req->data) |
618 | memcpy(req->data, bottom, sizeof(*bottom)); | 618 | memcpy(req->data, bottom, sizeof(*bottom)); |
619 | 619 | ||
620 | if (adapter->connection_features & FSF_FEATURE_NPIV_MODE) | 620 | if (adapter->connection_features & FSF_FEATURE_NPIV_MODE) { |
621 | fc_host_permanent_port_name(shost) = bottom->wwpn; | 621 | fc_host_permanent_port_name(shost) = bottom->wwpn; |
622 | else | 622 | fc_host_port_type(shost) = FC_PORTTYPE_NPIV; |
623 | } else | ||
623 | fc_host_permanent_port_name(shost) = fc_host_port_name(shost); | 624 | fc_host_permanent_port_name(shost) = fc_host_port_name(shost); |
624 | fc_host_maxframe_size(shost) = bottom->maximum_frame_size; | 625 | fc_host_maxframe_size(shost) = bottom->maximum_frame_size; |
625 | fc_host_supported_speeds(shost) = bottom->supported_speed; | 626 | fc_host_supported_speeds(shost) = bottom->supported_speed; |