diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-10-27 13:37:53 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:33 -0500 |
commit | a8adb83208020c913f010cb4e26d09e25300db8e (patch) | |
tree | 2245ca9f0dba5139946c99d45b80e7f2ce324b74 /drivers/scsi/lpfc/lpfc_attr.c | |
parent | 87af33fe5f78c27cf9e43c6e586dd6efd4be3e40 (diff) |
[SCSI] lpfc 8.2.3 : Miscellaneous Small Fixes - part 2
Miscellaneous Small Fixes - part 2
- Fix ndlp left in PLOGI state after link up
- Fix cannot rcv unsol ELS frames after running HBA resets for a few minutes
- Fix HBQ buffer_count implemention
- Fix RPI leak
- Fix crash while deleting vports while HBA is reset
- Revert the FCP Fbits offset back to 7
- Fix panic when deleting vports
- Remove unused code in switch statement outside of a case
- Reject PLOGI from invalid PName or NName of 0
- Ignore PLOGI responses from WWPName or WWNName of 0
- Fix debugfs hbqinfo display for ppc
- Added 8G to list of supported speeds for sysfs parameter
- Defer ndlp cleanup to dev-loss timeout handler
- Added support for WRITE_VPARMS mailbox command by applications
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_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index e8e9905828c9..4e9e890449a3 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -187,12 +187,9 @@ lpfc_state_show(struct class_device *cdev, char *buf) | |||
187 | case LPFC_LINK_UP: | 187 | case LPFC_LINK_UP: |
188 | case LPFC_CLEAR_LA: | 188 | case LPFC_CLEAR_LA: |
189 | case LPFC_HBA_READY: | 189 | case LPFC_HBA_READY: |
190 | len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - \n"); | 190 | len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - "); |
191 | 191 | ||
192 | switch (vport->port_state) { | 192 | switch (vport->port_state) { |
193 | len += snprintf(buf + len, PAGE_SIZE-len, | ||
194 | "initializing\n"); | ||
195 | break; | ||
196 | case LPFC_LOCAL_CFG_LINK: | 193 | case LPFC_LOCAL_CFG_LINK: |
197 | len += snprintf(buf + len, PAGE_SIZE-len, | 194 | len += snprintf(buf + len, PAGE_SIZE-len, |
198 | "Configuring Link\n"); | 195 | "Configuring Link\n"); |
@@ -1759,7 +1756,6 @@ sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr, | |||
1759 | 1756 | ||
1760 | switch (phba->sysfs_mbox.mbox->mb.mbxCommand) { | 1757 | switch (phba->sysfs_mbox.mbox->mb.mbxCommand) { |
1761 | /* Offline only */ | 1758 | /* Offline only */ |
1762 | case MBX_WRITE_NV: | ||
1763 | case MBX_INIT_LINK: | 1759 | case MBX_INIT_LINK: |
1764 | case MBX_DOWN_LINK: | 1760 | case MBX_DOWN_LINK: |
1765 | case MBX_CONFIG_LINK: | 1761 | case MBX_CONFIG_LINK: |
@@ -1782,6 +1778,8 @@ sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr, | |||
1782 | spin_unlock_irq(&phba->hbalock); | 1778 | spin_unlock_irq(&phba->hbalock); |
1783 | return -EPERM; | 1779 | return -EPERM; |
1784 | } | 1780 | } |
1781 | case MBX_WRITE_NV: | ||
1782 | case MBX_WRITE_VPARMS: | ||
1785 | case MBX_LOAD_SM: | 1783 | case MBX_LOAD_SM: |
1786 | case MBX_READ_NV: | 1784 | case MBX_READ_NV: |
1787 | case MBX_READ_CONFIG: | 1785 | case MBX_READ_CONFIG: |