[SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events
Added support for new sysfs attributes: lpfc_stat_data_ctrl and lpfc_max_scsicmpl_time. The attributes control statistical reporting of io load. Added support for new fc vendor events for error reporting. Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:

committed by
James Bottomley

parent
977b5a0af6
commit
ea2151b4e1
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "lpfc_hw.h"
|
||||
#include "lpfc_sli.h"
|
||||
#include "lpfc_nl.h"
|
||||
#include "lpfc_disc.h"
|
||||
#include "lpfc_scsi.h"
|
||||
#include "lpfc.h"
|
||||
@@ -1610,6 +1611,17 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
|
||||
|
||||
if (cmdiocbp) {
|
||||
if (cmdiocbp->iocb_cmpl) {
|
||||
/*
|
||||
* If an ELS command failed send an event to mgmt
|
||||
* application.
|
||||
*/
|
||||
if (saveq->iocb.ulpStatus &&
|
||||
(pring->ringno == LPFC_ELS_RING) &&
|
||||
(cmdiocbp->iocb.ulpCommand ==
|
||||
CMD_ELS_REQUEST64_CR))
|
||||
lpfc_send_els_failure_event(phba,
|
||||
cmdiocbp, saveq);
|
||||
|
||||
/*
|
||||
* Post all ELS completions to the worker thread.
|
||||
* All other are passed to the completion callback.
|
||||
|
Reference in New Issue
Block a user