[SCSI] lpfc 8.3.33: Change Naming convention for SLI4 Interrupt vector
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
bf8dae83fe
commit
4305f183c0
@ -8105,11 +8105,15 @@ lpfc_sli4_enable_msix(struct lpfc_hba *phba)
|
|||||||
* Assign MSI-X vectors to interrupt handlers
|
* Assign MSI-X vectors to interrupt handlers
|
||||||
*/
|
*/
|
||||||
for (index = 0; index < vectors; index++) {
|
for (index = 0; index < vectors; index++) {
|
||||||
|
memset(&phba->sli4_hba.handler_name[index], 0, 16);
|
||||||
|
sprintf((char *)&phba->sli4_hba.handler_name[index],
|
||||||
|
LPFC_DRIVER_HANDLER_NAME"%d", index);
|
||||||
|
|
||||||
phba->sli4_hba.fcp_eq_hdl[index].idx = index;
|
phba->sli4_hba.fcp_eq_hdl[index].idx = index;
|
||||||
phba->sli4_hba.fcp_eq_hdl[index].phba = phba;
|
phba->sli4_hba.fcp_eq_hdl[index].phba = phba;
|
||||||
rc = request_irq(phba->sli4_hba.msix_entries[index].vector,
|
rc = request_irq(phba->sli4_hba.msix_entries[index].vector,
|
||||||
&lpfc_sli4_hba_intr_handler, IRQF_SHARED,
|
&lpfc_sli4_hba_intr_handler, IRQF_SHARED,
|
||||||
LPFC_FP_DRIVER_HANDLER_NAME,
|
(char *)&phba->sli4_hba.handler_name[index],
|
||||||
&phba->sli4_hba.fcp_eq_hdl[index]);
|
&phba->sli4_hba.fcp_eq_hdl[index]);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
lpfc_printf_log(phba, KERN_WARNING, LOG_INIT,
|
lpfc_printf_log(phba, KERN_WARNING, LOG_INIT,
|
||||||
|
@ -430,6 +430,8 @@ struct lpfc_sli4_lnk_info {
|
|||||||
uint8_t lnk_no;
|
uint8_t lnk_no;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define LPFC_SLI4_HANDLER_NAME_SZ 16
|
||||||
|
|
||||||
/* SLI4 HBA data structure entries */
|
/* SLI4 HBA data structure entries */
|
||||||
struct lpfc_sli4_hba {
|
struct lpfc_sli4_hba {
|
||||||
void __iomem *conf_regs_memmap_p; /* Kernel memory mapped address for
|
void __iomem *conf_regs_memmap_p; /* Kernel memory mapped address for
|
||||||
@ -486,6 +488,7 @@ struct lpfc_sli4_hba {
|
|||||||
struct lpfc_register sli_intf;
|
struct lpfc_register sli_intf;
|
||||||
struct lpfc_pc_sli4_params pc_sli4_params;
|
struct lpfc_pc_sli4_params pc_sli4_params;
|
||||||
struct msix_entry *msix_entries;
|
struct msix_entry *msix_entries;
|
||||||
|
uint8_t handler_name[LPFC_FCP_IO_CHAN_MAX][LPFC_SLI4_HANDLER_NAME_SZ];
|
||||||
uint32_t cfg_eqn;
|
uint32_t cfg_eqn;
|
||||||
uint32_t msix_vec_nr;
|
uint32_t msix_vec_nr;
|
||||||
struct lpfc_fcp_eq_hdl *fcp_eq_hdl; /* FCP per-WQ handle */
|
struct lpfc_fcp_eq_hdl *fcp_eq_hdl; /* FCP per-WQ handle */
|
||||||
|
@ -20,9 +20,14 @@
|
|||||||
|
|
||||||
#define LPFC_DRIVER_VERSION "8.3.32"
|
#define LPFC_DRIVER_VERSION "8.3.32"
|
||||||
#define LPFC_DRIVER_NAME "lpfc"
|
#define LPFC_DRIVER_NAME "lpfc"
|
||||||
|
|
||||||
|
/* Used for SLI 2/3 */
|
||||||
#define LPFC_SP_DRIVER_HANDLER_NAME "lpfc:sp"
|
#define LPFC_SP_DRIVER_HANDLER_NAME "lpfc:sp"
|
||||||
#define LPFC_FP_DRIVER_HANDLER_NAME "lpfc:fp"
|
#define LPFC_FP_DRIVER_HANDLER_NAME "lpfc:fp"
|
||||||
|
|
||||||
|
/* Used for SLI4 */
|
||||||
|
#define LPFC_DRIVER_HANDLER_NAME "lpfc:"
|
||||||
|
|
||||||
#define LPFC_MODULE_DESC "Emulex LightPulse Fibre Channel SCSI driver " \
|
#define LPFC_MODULE_DESC "Emulex LightPulse Fibre Channel SCSI driver " \
|
||||||
LPFC_DRIVER_VERSION
|
LPFC_DRIVER_VERSION
|
||||||
#define LPFC_COPYRIGHT "Copyright(c) 2004-2009 Emulex. All rights reserved."
|
#define LPFC_COPYRIGHT "Copyright(c) 2004-2009 Emulex. All rights reserved."
|
||||||
|
Loading…
Reference in New Issue
Block a user