diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-08-02 11:09:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-01 13:17:30 -0400 |
commit | a58cbd5212fff2d4bba0bf58e778f02069597294 (patch) | |
tree | a2f773026934e3c2dad7642089b96ea48ea00db3 /drivers/scsi/lpfc/lpfc_vport.c | |
parent | c000c43cf12090972fad0fbb621d78c2100d0373 (diff) |
[SCSI] lpfc 8.2.2 : Error messages and debugfs updates
Error messages and debugfs updates:
- Fix up GID_FT error messages
- Enhance debugfs with slow_ring_trace, dumpslim and nodelist information
- Add log type (and messages) for vport state changes
- Enhance log messages when retries ELS fail
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_vport.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_vport.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_vport.c b/drivers/scsi/lpfc/lpfc_vport.c index 85797dbf5478..c5918a643014 100644 --- a/drivers/scsi/lpfc/lpfc_vport.c +++ b/drivers/scsi/lpfc/lpfc_vport.c | |||
@@ -326,6 +326,8 @@ lpfc_vport_create(struct fc_vport *fc_vport, bool disable) | |||
326 | rc = VPORT_OK; | 326 | rc = VPORT_OK; |
327 | 327 | ||
328 | out: | 328 | out: |
329 | lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT, | ||
330 | "1825 Vport Created.\n"); | ||
329 | lpfc_host_attrib_init(lpfc_shost_from_vport(vport)); | 331 | lpfc_host_attrib_init(lpfc_shost_from_vport(vport)); |
330 | error_out: | 332 | error_out: |
331 | return rc; | 333 | return rc; |
@@ -371,6 +373,8 @@ disable_vport(struct fc_vport *fc_vport) | |||
371 | lpfc_mbx_unreg_vpi(vport); | 373 | lpfc_mbx_unreg_vpi(vport); |
372 | 374 | ||
373 | lpfc_vport_set_state(vport, FC_VPORT_DISABLED); | 375 | lpfc_vport_set_state(vport, FC_VPORT_DISABLED); |
376 | lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT, | ||
377 | "1826 Vport Disabled.\n"); | ||
374 | return VPORT_OK; | 378 | return VPORT_OK; |
375 | } | 379 | } |
376 | 380 | ||
@@ -408,7 +412,8 @@ enable_vport(struct fc_vport *fc_vport) | |||
408 | } else { | 412 | } else { |
409 | lpfc_vport_set_state(vport, FC_VPORT_FAILED); | 413 | lpfc_vport_set_state(vport, FC_VPORT_FAILED); |
410 | } | 414 | } |
411 | 415 | lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT, | |
416 | "1827 Vport Enabled.\n"); | ||
412 | return VPORT_OK; | 417 | return VPORT_OK; |
413 | } | 418 | } |
414 | 419 | ||
@@ -511,7 +516,8 @@ skip_logo: | |||
511 | spin_lock_irq(&phba->hbalock); | 516 | spin_lock_irq(&phba->hbalock); |
512 | list_del_init(&vport->listentry); | 517 | list_del_init(&vport->listentry); |
513 | spin_unlock_irq(&phba->hbalock); | 518 | spin_unlock_irq(&phba->hbalock); |
514 | 519 | lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT, | |
520 | "1828 Vport Deleted.\n"); | ||
515 | rc = VPORT_OK; | 521 | rc = VPORT_OK; |
516 | out: | 522 | out: |
517 | scsi_host_put(shost); | 523 | scsi_host_put(shost); |