You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[SCSI] qla2xxx: Return correct port_type to FC-transport for Vports.
For Vports, the port_type should be set to FC_PORTTYPE_NPIV. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
committed by
James Bottomley
parent
8f40f672e6
commit
2f2fa13d56
@@ -886,9 +886,13 @@ qla2x00_get_host_speed(struct Scsi_Host *shost)
|
|||||||
static void
|
static void
|
||||||
qla2x00_get_host_port_type(struct Scsi_Host *shost)
|
qla2x00_get_host_port_type(struct Scsi_Host *shost)
|
||||||
{
|
{
|
||||||
scsi_qla_host_t *ha = to_qla_parent(shost_priv(shost));
|
scsi_qla_host_t *ha = shost_priv(shost);
|
||||||
uint32_t port_type = FC_PORTTYPE_UNKNOWN;
|
uint32_t port_type = FC_PORTTYPE_UNKNOWN;
|
||||||
|
|
||||||
|
if (ha->parent) {
|
||||||
|
fc_host_port_type(shost) = FC_PORTTYPE_NPIV;
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (ha->current_topology) {
|
switch (ha->current_topology) {
|
||||||
case ISP_CFG_NL:
|
case ISP_CFG_NL:
|
||||||
port_type = FC_PORTTYPE_LPORT;
|
port_type = FC_PORTTYPE_LPORT;
|
||||||
|
|||||||
Reference in New Issue
Block a user