lpfc 8.2.2 : Miscellaneous management and logging mods
Subsystems (2)
PATCH 5/8 lpfc 8.2.2 : Miscellaneous management and logging mods
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 <[email protected]>
drivers/scsi/lpfc/lpfc_attr.c +3 -14
@@ -68,12 +68,6 @@ lpfc_drvr_version_show(struct class_devi }static ssize_t -management_version_show (struct class_device *cdev,char *buf) -{ -return snprintf (buf,PAGE_SIZE ,DFC_API_VERSION "\n" ); -} - -static ssize_t lpfc_info_show (struct class_device *cdev,char *buf) {struct Scsi_Host *host =class_to_shost (cdev);
@@ -904,8 +898,6 @@ static CLASS_DEVICE_ATTR(num_discovered_ static CLASS_DEVICE_ATTR(nport_evt_cnt, S_IRUGO, lpfc_nport_evt_cnt_show, NULL); static CLASS_DEVICE_ATTR(lpfc_drvr_version, S_IRUGO, lpfc_drvr_version_show, NULL); -static CLASS_DEVICE_ATTR(management_version, S_IRUGO, management_version_show, - NULL); static CLASS_DEVICE_ATTR(board_mode, S_IRUGO | S_IWUSR, lpfc_board_mode_show, lpfc_board_mode_store); static CLASS_DEVICE_ATTR(issue_reset, S_IWUSR, NULL, lpfc_issue_reset);
@@ -1110,7 +1102,7 @@ MODULE_PARM_DESC(lpfc_sli_mode, "SLI mod" 2 - select SLI-2 even on SLI-3 capable HBAs," " 3 - select SLI-3"); -LPFC_ATTR_R (npiv_enable,0 ,0 ,1 ,"Enable NPIV functionality" ); +LPFC_ATTR_R (enable_npiv,0 ,0 ,1 ,"Enable NPIV functionality" );/* # 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_ &class_device_attr_lpfc_multi_ring_type, &class_device_attr_lpfc_fdmi_on, &class_device_attr_lpfc_max_luns, - &class_device_attr_lpfc_npiv_enable, + &class_device_attr_lpfc_enable_npiv, &class_device_attr_nport_evt_cnt, - &class_device_attr_management_version, &class_device_attr_board_mode, &class_device_attr_max_vpi, &class_device_attr_used_vpi,
@@ -1569,7 +1560,6 @@ struct class_device_attribute *lpfc_vpor &class_device_attr_lpfc_fdmi_on, &class_device_attr_lpfc_max_luns, &class_device_attr_nport_evt_cnt, - &class_device_attr_management_version, &class_device_attr_npiv_info, NULL, };
@@ -2413,7 +2403,6 @@ struct fc_function_template lpfc_vport_t .get_starget_port_name = lpfc_get_starget_port_name, .show_starget_port_name = 1, - .issue_fc_host_lip = lpfc_issue_lip, .dev_loss_tmo_callbk = lpfc_dev_loss_tmo_callbk, .terminate_rport_io = lpfc_terminate_rport_io,
@@ -2432,7 +2421,7 @@ lpfc_get_cfgparam(struct lpfc_hba *phba)lpfc_topology_init (phba, lpfc_topology);lpfc_link_speed_init (phba, lpfc_link_speed);lpfc_poll_tmo_init (phba, lpfc_poll_tmo); -lpfc_npiv_enable_init (phba, lpfc_npiv_enable); +lpfc_enable_npiv_init (phba, lpfc_enable_npiv);lpfc_use_msi_init (phba, lpfc_use_msi); phba->cfg_poll = lpfc_poll; phba->cfg_soft_wwnn =0L ;
drivers/scsi/lpfc/lpfc_debugfs.c +158 -1
202 lines not on this page · raw message
drivers/scsi/lpfc/lpfc.h +2 -1
@@ -430,7 +430,7 @@ struct lpfc_hba {/* HBA Config Parameters */ uint32_t cfg_ack0; -uint32_t cfg_npiv_enable; +uint32_t cfg_enable_npiv;uint32_t cfg_topology;uint32_t cfg_link_speed;uint32_t cfg_cr_delay;
@@ -551,6 +551,7 @@ struct lpfc_hba {#ifdef CONFIG_LPFC_DEBUG_FS struct dentry *hba_debugfs_root;atomic_t debugfs_vport_count; +struct dentry *debug_hbqinfo;struct dentry *debug_dumpslim;struct dentry *debug_slow_ring_trc;struct lpfc_debugfs_trc *slow_ring_trc;
drivers/scsi/lpfc/lpfc_hbadisc.c +1 -1
@@ -990,7 +990,7 @@ lpfc_mbx_process_link_up(struct lpfc_hba } }else {if (!(phba->sli3_options &LPFC_SLI3_NPIV_ENABLED )) { -if (phba->max_vpi && phba->cfg_npiv_enable && +if (phba->max_vpi && phba->cfg_enable_npiv && (phba->sli_rev ==3 )) phba->sli3_options |=LPFC_SLI3_NPIV_ENABLED ; }
drivers/scsi/lpfc/lpfc_mbox.c +1 -1
@@ -688,7 +688,7 @@ lpfc_config_port(struct lpfc_hba *phba,if (phba->sli_rev ==3 && phba->vpd.sli3Feat.cerbm) { mb->un.varCfgPort.cerbm =1 ;/* Request HBQs */ mb->un.varCfgPort.max_hbq =1 ;/* Requesting 2 HBQs */ -if (phba->max_vpi && phba->cfg_npiv_enable && +if (phba->max_vpi && phba->cfg_enable_npiv && phba->vpd.sli3Feat.cmv) { mb->un.varCfgPort.max_vpi = phba->max_vpi; mb->un.varCfgPort.cmv =1 ;
drivers/scsi/lpfc/lpfc_sli.c +3 -3
@@ -602,7 +602,7 @@ static struct lpfc_hbq_init lpfc_els_hbq .add_count = 5, }; -static struct lpfc_hbq_init *lpfc_hbq_defs[] = { +struct lpfc_hbq_init *lpfc_hbq_defs[] = { &lpfc_els_hbq, };
@@ -2136,7 +2136,7 @@ lpfc_sli_chipset_init(struct lpfc_hba *preturn 0 ; } -static int +int lpfc_sli_hbq_count (void ) {return ARRAY_SIZE (lpfc_hbq_defs);
@@ -2309,7 +2309,7 @@ lpfc_sli_hba_setup(struct lpfc_hba *phbaswitch (lpfc_sli_mode) {case 2 : -if (phba->cfg_npiv_enable) { +if (phba->cfg_enable_npiv) { lpfc_printf_log(phba, KERN_ERR, LOG_INIT | LOG_VPORT, "1824 NPIV enabled: Override lpfc_sli_mode " "parameter (%d) to auto (0).\n",
drivers/scsi/lpfc/lpfc_version.h +0 -2
@@ -25,5 +25,3 @@#define LPFC_MODULE_DESC "Emulex LightPulse Fibre Channel SCSI driver " \ LPFC_DRIVER_VERSION#define LPFC_COPYRIGHT "Copyright(c) 2004-2007 Emulex. All rights reserved." - -#define DFC_API_VERSION "0.0.0"