scsi: lpfc: Enhance congestion statistics collection
authorJustin Tee <justin.tee@broadcom.com>
Tue, 23 May 2023 18:32:04 +0000 (11:32 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 May 2023 22:14:20 +0000 (18:14 -0400)
commit93190ac1d4e7aa5fc959cf6a2bd294c1dfe6ee47
treed48c87dabd7560aa304d09cd4312ed943f0955d5
parent6a84d015082ef8ef1d933230abc3fb1f6774d1d3
scsi: lpfc: Enhance congestion statistics collection

Various improvements are made for collecting congestion statistics:

 - Pre-existing logic is replaced with use of an hrtimer for increased
   reporting accuracy.

 - Congestion timestamp information is reorganized into a single struct.

 - Common statistic collection logic is refactored into a helper routine.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230523183206.7728-8-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_init.c