lpfc 8.3.33: Add lpfc_fcp_look_ahead module parameter
Subsystems (2)
PATCH 18/21 lpfc 8.3.33: Add lpfc_fcp_look_ahead module parameter
Add lpfc_fcp_look_ahead module parameter
Signed-off-by James Smart <[email protected]>
---
lpfc.h | 2 + lpfc_attr.c | 11 +++++++ lpfc_crtn.h | 1 lpfc_init.c | 3 ++ lpfc_sli.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- lpfc_sli4.h | 1 6 files changed, 102 insertions(+), 4 deletions(-)
drivers/scsi/lpfc/lpfc_attr.c +11 -0
@@ -3918,6 +3918,17 @@ LPFC_ATTR_R(enable_hba_heartbeat, 0, 0,LPFC_ATTR_R (enable_bg,0 ,0 ,1 ,"Enable BlockGuard Support" );/* +# lpfc_fcp_look_ahead: Look ahead for completions in FCP start routine +# 0 = disabled (default) +# 1 = enabled +# Value range is [0,1]. Default value is 0. +*/ +unsigned int lpfc_fcp_look_ahead =LPFC_LOOK_AHEAD_OFF ; + +module_param (lpfc_fcp_look_ahead, uint,S_IRUGO ); +MODULE_PARM_DESC (lpfc_fcp_look_ahead,"Look ahead for completions" ); + +/* # lpfc_prot_mask: i # - Bit mask of host protection capabilities used to register with the # SCSI mid-layer
drivers/scsi/lpfc/lpfc_crtn.h +1 -0
@@ -390,6 +390,7 @@ extern spinlock_t pgcnt_lock;extern unsigned int pgcnt;extern unsigned int lpfc_prot_mask;extern unsigned char lpfc_prot_guard; +extern unsigned int lpfc_fcp_look_ahead;/* Interface exported by fabric iocb scheduler */ void lpfc_fabric_abort_nport (struct lpfc_nodelist *);
drivers/scsi/lpfc/lpfc.h +2 -0
@@ -73,6 +73,8 @@ struct lpfc_sli2_slim;#define LPFC_HB_MBOX_INTERVAL 5/* Heart beat interval in seconds. */ #define LPFC_HB_MBOX_TIMEOUT 30/* Heart beat timeout in seconds. */ +#define LPFC_LOOK_AHEAD_OFF 0/* Look ahead logic is turned off */ +/* Error Attention event polling interval */ #define LPFC_ERATT_POLL_INTERVAL 5/* EATT poll interval in seconds */
drivers/scsi/lpfc/lpfc_init.c +3 -0
@@ -8111,6 +8111,7 @@ enable_msix_vectors: phba->sli4_hba.fcp_eq_hdl[index].idx = index; phba->sli4_hba.fcp_eq_hdl[index].phba = phba; +atomic_set (&phba->sli4_hba.fcp_eq_hdl[index].fcp_eq_in_use,1 ); rc = request_irq(phba->sli4_hba.msix_entries[index].vector, &lpfc_sli4_hba_intr_handler, IRQF_SHARED, (char *)&phba->sli4_hba.handler_name[index],
@@ -8283,6 +8284,8 @@ lpfc_sli4_enable_intr(struct lpfc_hba *p index++) { phba->sli4_hba.fcp_eq_hdl[index].idx = index; phba->sli4_hba.fcp_eq_hdl[index].phba = phba; +atomic_set (&phba->sli4_hba.fcp_eq_hdl[index]. + fcp_eq_in_use,1 ); } } }
drivers/scsi/lpfc/lpfc_sli4.h +1 -0
@@ -373,6 +373,7 @@ struct lpfc_hba;struct lpfc_fcp_eq_hdl {uint32_t idx;struct lpfc_hba *phba; +atomic_t fcp_eq_in_use; };/* Port Capabilities for SLI4 Parameters */
drivers/scsi/lpfc/lpfc_sli.c +84 -4
138 lines not on this page · raw message