Skip to content

Commit 6ca396c

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Save FPIN frequency statistics upon receipt of peer cgn notifications
FPIN frequency is provided by the fabric in peer congestion notifications. Currently, the frequency is only logged in a message, but it should also be saved into the phba's cgn_fpin statistics member for proper application functionality. Signed-off-by: Justin Tee <justin.tee@broadcom.com> Link: https://lore.kernel.org/r/20240131185112.149731-10-justintee8345@gmail.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 900db34 commit 6ca396c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10131,6 +10131,9 @@ lpfc_els_rcv_fpin_peer_cgn(struct lpfc_hba *phba, struct fc_tlv_desc *tlv)
1013110131
pc_evt_str = lpfc_get_fpin_congn_event_nm(pc_evt);
1013210132
cnt = be32_to_cpu(pc->pname_count);
1013310133

10134+
/* Capture FPIN frequency */
10135+
phba->cgn_fpin_frequency = be32_to_cpu(pc->event_period);
10136+
1013410137
lpfc_printf_log(phba, KERN_INFO, LOG_CGN_MGMT | LOG_ELS,
1013510138
"4684 FPIN Peer Congestion %s (x%x) "
1013610139
"Duration %d mSecs "

0 commit comments

Comments
 (0)