diff options
author | James Smart <James.Smart@Emulex.Com> | 2009-05-22 14:53:21 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-08 12:26:19 -0400 |
commit | 21e9a0a5fbd2b7cb3ae29f6d491a30bc0e688422 (patch) | |
tree | d5ae35da0cdec82a78b814d907d630d57b5cc7ae /drivers/scsi/lpfc/lpfc_scsi.c | |
parent | f4b4c68f74dcd5da03df851090cad28ad4e8d7cc (diff) |
[SCSI] lpfc 8.3.2 : Persistent Vport Support
Add support for persistent vport definitions at creation at boot time
Also includes a few misc fixes for:
- conversion to vpi name from vport slang name
- couple of small mailbox references
- some additional discovery mods
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 1a7659c8f388..ccbde41c1539 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -329,7 +329,7 @@ lpfc_ramp_down_queue_handler(struct lpfc_hba *phba) | |||
329 | 329 | ||
330 | vports = lpfc_create_vport_work_array(phba); | 330 | vports = lpfc_create_vport_work_array(phba); |
331 | if (vports != NULL) | 331 | if (vports != NULL) |
332 | for(i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { | 332 | for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { |
333 | shost = lpfc_shost_from_vport(vports[i]); | 333 | shost = lpfc_shost_from_vport(vports[i]); |
334 | shost_for_each_device(sdev, shost) { | 334 | shost_for_each_device(sdev, shost) { |
335 | new_queue_depth = | 335 | new_queue_depth = |
@@ -383,7 +383,7 @@ lpfc_ramp_up_queue_handler(struct lpfc_hba *phba) | |||
383 | 383 | ||
384 | vports = lpfc_create_vport_work_array(phba); | 384 | vports = lpfc_create_vport_work_array(phba); |
385 | if (vports != NULL) | 385 | if (vports != NULL) |
386 | for(i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { | 386 | for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { |
387 | shost = lpfc_shost_from_vport(vports[i]); | 387 | shost = lpfc_shost_from_vport(vports[i]); |
388 | shost_for_each_device(sdev, shost) { | 388 | shost_for_each_device(sdev, shost) { |
389 | if (vports[i]->cfg_lun_queue_depth <= | 389 | if (vports[i]->cfg_lun_queue_depth <= |
@@ -431,7 +431,7 @@ lpfc_scsi_dev_block(struct lpfc_hba *phba) | |||
431 | 431 | ||
432 | vports = lpfc_create_vport_work_array(phba); | 432 | vports = lpfc_create_vport_work_array(phba); |
433 | if (vports != NULL) | 433 | if (vports != NULL) |
434 | for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { | 434 | for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { |
435 | shost = lpfc_shost_from_vport(vports[i]); | 435 | shost = lpfc_shost_from_vport(vports[i]); |
436 | shost_for_each_device(sdev, shost) { | 436 | shost_for_each_device(sdev, shost) { |
437 | rport = starget_to_rport(scsi_target(sdev)); | 437 | rport = starget_to_rport(scsi_target(sdev)); |