diff options
author | James Smart <james.smart@emulex.com> | 2012-08-03 12:36:33 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-14 09:42:59 -0400 |
commit | 4305f183c03fbcf7fd4102de4422862fc76567d2 (patch) | |
tree | 3c07c3c0cc4c7dc0cb731499b97fb90666b0e3a5 /drivers/scsi/lpfc | |
parent | bf8dae83fea151ebd74492740733e2ed62dc9f51 (diff) |
[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>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 6 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli4.h | 3 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_version.h | 5 |
3 files changed, 13 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 3dad5ff870a8..538124b39767 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -8105,11 +8105,15 @@ enable_msix_vectors: | |||
8105 | * Assign MSI-X vectors to interrupt handlers | 8105 | * Assign MSI-X vectors to interrupt handlers |
8106 | */ | 8106 | */ |
8107 | for (index = 0; index < vectors; index++) { | 8107 | for (index = 0; index < vectors; index++) { |
8108 | memset(&phba->sli4_hba.handler_name[index], 0, 16); | ||
8109 | sprintf((char *)&phba->sli4_hba.handler_name[index], | ||
8110 | LPFC_DRIVER_HANDLER_NAME"%d", index); | ||
8111 | |||
8108 | phba->sli4_hba.fcp_eq_hdl[index].idx = index; | 8112 | phba->sli4_hba.fcp_eq_hdl[index].idx = index; |
8109 | phba->sli4_hba.fcp_eq_hdl[index].phba = phba; | 8113 | phba->sli4_hba.fcp_eq_hdl[index].phba = phba; |
8110 | rc = request_irq(phba->sli4_hba.msix_entries[index].vector, | 8114 | rc = request_irq(phba->sli4_hba.msix_entries[index].vector, |
8111 | &lpfc_sli4_hba_intr_handler, IRQF_SHARED, | 8115 | &lpfc_sli4_hba_intr_handler, IRQF_SHARED, |
8112 | LPFC_FP_DRIVER_HANDLER_NAME, | 8116 | (char *)&phba->sli4_hba.handler_name[index], |
8113 | &phba->sli4_hba.fcp_eq_hdl[index]); | 8117 | &phba->sli4_hba.fcp_eq_hdl[index]); |
8114 | if (rc) { | 8118 | if (rc) { |
8115 | lpfc_printf_log(phba, KERN_WARNING, LOG_INIT, | 8119 | lpfc_printf_log(phba, KERN_WARNING, LOG_INIT, |
diff --git a/drivers/scsi/lpfc/lpfc_sli4.h b/drivers/scsi/lpfc/lpfc_sli4.h index b4829d1d9e83..c806e66be55b 100644 --- a/drivers/scsi/lpfc/lpfc_sli4.h +++ b/drivers/scsi/lpfc/lpfc_sli4.h | |||
@@ -430,6 +430,8 @@ struct lpfc_sli4_lnk_info { | |||
430 | uint8_t lnk_no; | 430 | uint8_t lnk_no; |
431 | }; | 431 | }; |
432 | 432 | ||
433 | #define LPFC_SLI4_HANDLER_NAME_SZ 16 | ||
434 | |||
433 | /* SLI4 HBA data structure entries */ | 435 | /* SLI4 HBA data structure entries */ |
434 | struct lpfc_sli4_hba { | 436 | struct lpfc_sli4_hba { |
435 | void __iomem *conf_regs_memmap_p; /* Kernel memory mapped address for | 437 | void __iomem *conf_regs_memmap_p; /* Kernel memory mapped address for |
@@ -486,6 +488,7 @@ struct lpfc_sli4_hba { | |||
486 | struct lpfc_register sli_intf; | 488 | struct lpfc_register sli_intf; |
487 | struct lpfc_pc_sli4_params pc_sli4_params; | 489 | struct lpfc_pc_sli4_params pc_sli4_params; |
488 | struct msix_entry *msix_entries; | 490 | struct msix_entry *msix_entries; |
491 | uint8_t handler_name[LPFC_FCP_IO_CHAN_MAX][LPFC_SLI4_HANDLER_NAME_SZ]; | ||
489 | uint32_t cfg_eqn; | 492 | uint32_t cfg_eqn; |
490 | uint32_t msix_vec_nr; | 493 | uint32_t msix_vec_nr; |
491 | struct lpfc_fcp_eq_hdl *fcp_eq_hdl; /* FCP per-WQ handle */ | 494 | struct lpfc_fcp_eq_hdl *fcp_eq_hdl; /* FCP per-WQ handle */ |
diff --git a/drivers/scsi/lpfc/lpfc_version.h b/drivers/scsi/lpfc/lpfc_version.h index 4704e5b5088e..77310405c8d1 100644 --- a/drivers/scsi/lpfc/lpfc_version.h +++ b/drivers/scsi/lpfc/lpfc_version.h | |||
@@ -20,9 +20,14 @@ | |||
20 | 20 | ||
21 | #define LPFC_DRIVER_VERSION "8.3.32" | 21 | #define LPFC_DRIVER_VERSION "8.3.32" |
22 | #define LPFC_DRIVER_NAME "lpfc" | 22 | #define LPFC_DRIVER_NAME "lpfc" |
23 | |||
24 | /* Used for SLI 2/3 */ | ||
23 | #define LPFC_SP_DRIVER_HANDLER_NAME "lpfc:sp" | 25 | #define LPFC_SP_DRIVER_HANDLER_NAME "lpfc:sp" |
24 | #define LPFC_FP_DRIVER_HANDLER_NAME "lpfc:fp" | 26 | #define LPFC_FP_DRIVER_HANDLER_NAME "lpfc:fp" |
25 | 27 | ||
28 | /* Used for SLI4 */ | ||
29 | #define LPFC_DRIVER_HANDLER_NAME "lpfc:" | ||
30 | |||
26 | #define LPFC_MODULE_DESC "Emulex LightPulse Fibre Channel SCSI driver " \ | 31 | #define LPFC_MODULE_DESC "Emulex LightPulse Fibre Channel SCSI driver " \ |
27 | LPFC_DRIVER_VERSION | 32 | LPFC_DRIVER_VERSION |
28 | #define LPFC_COPYRIGHT "Copyright(c) 2004-2009 Emulex. All rights reserved." | 33 | #define LPFC_COPYRIGHT "Copyright(c) 2004-2009 Emulex. All rights reserved." |