Skip to content

Commit

Permalink
[SCSI] qla2xxx: Use correct value for max vport in LOOP topology.
Browse files Browse the repository at this point in the history
Use minimum value for max vport during firmware initialization in LOOP
topology. Using max vport value from get resource count in LOOP topology
causes firmware initialization failure.

Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Lalit Chandivade authored and James Bottomley committed Mar 10, 2009
1 parent 6431c5d commit 605aa2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1308,8 +1308,12 @@ qla2x00_init_rings(scsi_qla_host_t *vha)

DEBUG(printk("scsi(%ld): Issue init firmware.\n", vha->host_no));

if (ha->flags.npiv_supported)
if (ha->flags.npiv_supported) {
if (ha->operating_mode == LOOP)
ha->max_npiv_vports = MIN_MULTI_ID_FABRIC - 1;
mid_init_cb->count = cpu_to_le16(ha->max_npiv_vports);
}


mid_init_cb->options = __constant_cpu_to_le16(BIT_1);

Expand Down

0 comments on commit 605aa2b

Please sign in to comment.