Skip to content

Commit 140bd88

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Move handling of reset congestion statistics events
The ACQE notification event to reset congestion statistics should be moved into the specific lpfc_sli4_async_sli_evt() routine instead of being processed from the generic lpfc_sli4_async_event_proc() routine. Signed-off-by: Justin Tee <justin.tee@broadcom.com> Link: https://lore.kernel.org/r/20240131185112.149731-11-justintee8345@gmail.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 6ca396c commit 140bd88

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

drivers/scsi/lpfc/lpfc_hw4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4069,7 +4069,6 @@ struct lpfc_mcqe {
40694069
#define LPFC_TRAILER_CODE_GRP5 0x5
40704070
#define LPFC_TRAILER_CODE_FC 0x10
40714071
#define LPFC_TRAILER_CODE_SLI 0x11
4072-
#define LPFC_TRAILER_CODE_CMSTAT 0x13
40734072
};
40744073

40754074
struct lpfc_acqe_link {
@@ -4339,6 +4338,7 @@ struct lpfc_acqe_sli {
43394338
#define LPFC_SLI_EVENT_TYPE_EEPROM_FAILURE 0x10
43404339
#define LPFC_SLI_EVENT_TYPE_CGN_SIGNAL 0x11
43414340
#define LPFC_SLI_EVENT_TYPE_RD_SIGNAL 0x12
4341+
#define LPFC_SLI_EVENT_TYPE_RESET_CM_STATS 0x13
43424342
};
43434343

43444344
/*

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ static void lpfc_sli4_oas_verify(struct lpfc_hba *phba);
9494
static uint16_t lpfc_find_cpu_handle(struct lpfc_hba *, uint16_t, int);
9595
static void lpfc_setup_bg(struct lpfc_hba *, struct Scsi_Host *);
9696
static int lpfc_sli4_cgn_parm_chg_evt(struct lpfc_hba *);
97+
static void lpfc_sli4_async_cmstat_evt(struct lpfc_hba *phba);
9798
static void lpfc_sli4_prep_dev_for_reset(struct lpfc_hba *phba);
9899

99100
static struct scsi_transport_template *lpfc_transport_template = NULL;
@@ -6636,6 +6637,11 @@ lpfc_sli4_async_sli_evt(struct lpfc_hba *phba, struct lpfc_acqe_sli *acqe_sli)
66366637
acqe_sli->event_data1, acqe_sli->event_data2,
66376638
acqe_sli->event_data3);
66386639
break;
6640+
case LPFC_SLI_EVENT_TYPE_RESET_CM_STATS:
6641+
lpfc_printf_log(phba, KERN_INFO, LOG_CGN_MGMT,
6642+
"2905 Reset CM statistics\n");
6643+
lpfc_sli4_async_cmstat_evt(phba);
6644+
break;
66396645
default:
66406646
lpfc_printf_log(phba, KERN_INFO, LOG_SLI,
66416647
"3193 Unrecognized SLI event, type: 0x%x",
@@ -7346,9 +7352,6 @@ void lpfc_sli4_async_event_proc(struct lpfc_hba *phba)
73467352
case LPFC_TRAILER_CODE_SLI:
73477353
lpfc_sli4_async_sli_evt(phba, &cq_event->cqe.acqe_sli);
73487354
break;
7349-
case LPFC_TRAILER_CODE_CMSTAT:
7350-
lpfc_sli4_async_cmstat_evt(phba);
7351-
break;
73527355
default:
73537356
lpfc_printf_log(phba, KERN_ERR,
73547357
LOG_TRACE_EVENT,

0 commit comments

Comments
 (0)