diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-08-02 11:10:21 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-01 13:22:48 -0400 |
commit | 78b2d852a88cd2a55e3ab632109de045d58b83e3 (patch) | |
tree | 065e65321c216a7bab63616eec598ea611ed8463 /drivers/scsi/lpfc/lpfc_attr.c | |
parent | e8b62011d88d6fdba585fb2bb77c9274a63cadab (diff) |
[SCSI] lpfc 8.2.2 : Miscellaneous management and logging mods
- Remove the "management_version" sysfs parameter (was unused)
- Add HBQ information to lpfc debugfs
- Change lpfc_npiv_enable name back to lpfc_enable_npiv (internal stds)
- Remove "issue_lip" attribute from the vports transport template
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_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index c1cedc3d1b70..0a7f06ba77c0 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -68,12 +68,6 @@ lpfc_drvr_version_show(struct class_device *cdev, char *buf) | |||
68 | } | 68 | } |
69 | 69 | ||
70 | static ssize_t | 70 | static ssize_t |
71 | management_version_show(struct class_device *cdev, char *buf) | ||
72 | { | ||
73 | return snprintf(buf, PAGE_SIZE, DFC_API_VERSION "\n"); | ||
74 | } | ||
75 | |||
76 | static ssize_t | ||
77 | lpfc_info_show(struct class_device *cdev, char *buf) | 71 | lpfc_info_show(struct class_device *cdev, char *buf) |
78 | { | 72 | { |
79 | struct Scsi_Host *host = class_to_shost(cdev); | 73 | struct Scsi_Host *host = class_to_shost(cdev); |
@@ -904,8 +898,6 @@ static CLASS_DEVICE_ATTR(num_discovered_ports, S_IRUGO, | |||
904 | static CLASS_DEVICE_ATTR(nport_evt_cnt, S_IRUGO, lpfc_nport_evt_cnt_show, NULL); | 898 | static CLASS_DEVICE_ATTR(nport_evt_cnt, S_IRUGO, lpfc_nport_evt_cnt_show, NULL); |
905 | static CLASS_DEVICE_ATTR(lpfc_drvr_version, S_IRUGO, lpfc_drvr_version_show, | 899 | static CLASS_DEVICE_ATTR(lpfc_drvr_version, S_IRUGO, lpfc_drvr_version_show, |
906 | NULL); | 900 | NULL); |
907 | static CLASS_DEVICE_ATTR(management_version, S_IRUGO, management_version_show, | ||
908 | NULL); | ||
909 | static CLASS_DEVICE_ATTR(board_mode, S_IRUGO | S_IWUSR, | 901 | static CLASS_DEVICE_ATTR(board_mode, S_IRUGO | S_IWUSR, |
910 | lpfc_board_mode_show, lpfc_board_mode_store); | 902 | lpfc_board_mode_show, lpfc_board_mode_store); |
911 | static CLASS_DEVICE_ATTR(issue_reset, S_IWUSR, NULL, lpfc_issue_reset); | 903 | static CLASS_DEVICE_ATTR(issue_reset, S_IWUSR, NULL, lpfc_issue_reset); |
@@ -1110,7 +1102,7 @@ MODULE_PARM_DESC(lpfc_sli_mode, "SLI mode selector:" | |||
1110 | " 2 - select SLI-2 even on SLI-3 capable HBAs," | 1102 | " 2 - select SLI-2 even on SLI-3 capable HBAs," |
1111 | " 3 - select SLI-3"); | 1103 | " 3 - select SLI-3"); |
1112 | 1104 | ||
1113 | LPFC_ATTR_R(npiv_enable, 0, 0, 1, "Enable NPIV functionality"); | 1105 | LPFC_ATTR_R(enable_npiv, 0, 0, 1, "Enable NPIV functionality"); |
1114 | 1106 | ||
1115 | /* | 1107 | /* |
1116 | # lpfc_nodev_tmo: If set, it will hold all I/O errors on devices that disappear | 1108 | # lpfc_nodev_tmo: If set, it will hold all I/O errors on devices that disappear |
@@ -1530,9 +1522,8 @@ struct class_device_attribute *lpfc_hba_attrs[] = { | |||
1530 | &class_device_attr_lpfc_multi_ring_type, | 1522 | &class_device_attr_lpfc_multi_ring_type, |
1531 | &class_device_attr_lpfc_fdmi_on, | 1523 | &class_device_attr_lpfc_fdmi_on, |
1532 | &class_device_attr_lpfc_max_luns, | 1524 | &class_device_attr_lpfc_max_luns, |
1533 | &class_device_attr_lpfc_npiv_enable, | 1525 | &class_device_attr_lpfc_enable_npiv, |
1534 | &class_device_attr_nport_evt_cnt, | 1526 | &class_device_attr_nport_evt_cnt, |
1535 | &class_device_attr_management_version, | ||
1536 | &class_device_attr_board_mode, | 1527 | &class_device_attr_board_mode, |
1537 | &class_device_attr_max_vpi, | 1528 | &class_device_attr_max_vpi, |
1538 | &class_device_attr_used_vpi, | 1529 | &class_device_attr_used_vpi, |
@@ -1569,7 +1560,6 @@ struct class_device_attribute *lpfc_vport_attrs[] = { | |||
1569 | &class_device_attr_lpfc_fdmi_on, | 1560 | &class_device_attr_lpfc_fdmi_on, |
1570 | &class_device_attr_lpfc_max_luns, | 1561 | &class_device_attr_lpfc_max_luns, |
1571 | &class_device_attr_nport_evt_cnt, | 1562 | &class_device_attr_nport_evt_cnt, |
1572 | &class_device_attr_management_version, | ||
1573 | &class_device_attr_npiv_info, | 1563 | &class_device_attr_npiv_info, |
1574 | NULL, | 1564 | NULL, |
1575 | }; | 1565 | }; |
@@ -2413,7 +2403,6 @@ struct fc_function_template lpfc_vport_transport_functions = { | |||
2413 | .get_starget_port_name = lpfc_get_starget_port_name, | 2403 | .get_starget_port_name = lpfc_get_starget_port_name, |
2414 | .show_starget_port_name = 1, | 2404 | .show_starget_port_name = 1, |
2415 | 2405 | ||
2416 | .issue_fc_host_lip = lpfc_issue_lip, | ||
2417 | .dev_loss_tmo_callbk = lpfc_dev_loss_tmo_callbk, | 2406 | .dev_loss_tmo_callbk = lpfc_dev_loss_tmo_callbk, |
2418 | .terminate_rport_io = lpfc_terminate_rport_io, | 2407 | .terminate_rport_io = lpfc_terminate_rport_io, |
2419 | 2408 | ||
@@ -2432,7 +2421,7 @@ lpfc_get_cfgparam(struct lpfc_hba *phba) | |||
2432 | lpfc_topology_init(phba, lpfc_topology); | 2421 | lpfc_topology_init(phba, lpfc_topology); |
2433 | lpfc_link_speed_init(phba, lpfc_link_speed); | 2422 | lpfc_link_speed_init(phba, lpfc_link_speed); |
2434 | lpfc_poll_tmo_init(phba, lpfc_poll_tmo); | 2423 | lpfc_poll_tmo_init(phba, lpfc_poll_tmo); |
2435 | lpfc_npiv_enable_init(phba, lpfc_npiv_enable); | 2424 | lpfc_enable_npiv_init(phba, lpfc_enable_npiv); |
2436 | lpfc_use_msi_init(phba, lpfc_use_msi); | 2425 | lpfc_use_msi_init(phba, lpfc_use_msi); |
2437 | phba->cfg_poll = lpfc_poll; | 2426 | phba->cfg_poll = lpfc_poll; |
2438 | phba->cfg_soft_wwnn = 0L; | 2427 | phba->cfg_soft_wwnn = 0L; |