diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2009-04-17 09:08:02 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 11:07:23 -0400 |
commit | 306b6edcdd7b6cc5fee50d48fc398201fa3df841 (patch) | |
tree | 122230d220f404e30a30e4a822a1beab5d423c07 /drivers/s390 | |
parent | 135ea137e3c2872448c12d3a8890389fa64990c6 (diff) |
[SCSI] zfcp: Enable auto-port discovery for NPIV.
Since we're setting the host port type now to FC_PORTTYPE_NPIV
for adapters running in NPIV mode we should allow this port type
for auto-port scanning as well.
Signed-off-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_fc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index e8d032b9dfbd..e56141d10407 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
@@ -637,7 +637,8 @@ int zfcp_scan_ports(struct zfcp_adapter *adapter) | |||
637 | max_entries = chain ? ZFCP_GPN_FT_MAX_ENTRIES : ZFCP_GPN_FT_ENTRIES; | 637 | max_entries = chain ? ZFCP_GPN_FT_MAX_ENTRIES : ZFCP_GPN_FT_ENTRIES; |
638 | max_bytes = chain ? ZFCP_GPN_FT_MAX_SIZE : ZFCP_CT_SIZE_ONE_PAGE; | 638 | max_bytes = chain ? ZFCP_GPN_FT_MAX_SIZE : ZFCP_CT_SIZE_ONE_PAGE; |
639 | 639 | ||
640 | if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT) | 640 | if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT && |
641 | fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPIV) | ||
641 | return 0; | 642 | return 0; |
642 | 643 | ||
643 | ret = zfcp_wka_port_get(&adapter->nsp); | 644 | ret = zfcp_wka_port_get(&adapter->nsp); |