]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Zero CGN stats only during initial driver load and stat reset
authorJames Smart <jsmart2021@gmail.com>
Fri, 10 Sep 2021 23:31:57 +0000 (16:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Sep 2021 03:33:21 +0000 (23:33 -0400)
commitb329af9f628f8c59c038133f2fbfe9d080d07e7f
tree7b662415e303122b9acf54526d89bebbf4081f8c
parentee2a382f268ebbc7143cad0f1b0260324ed52d66
scsi: lpfc: Zero CGN stats only during initial driver load and stat reset

Currently congestion management framework results are cleared whenever the
framework settings changed (such as it being turned off then back on). This
unfortunately means prior stats, rolled up to higher time windows lose
meaning.

Change such that stats are not cleared. Thus they pause and resume with
prior values still being considered.

Link: https://lore.kernel.org/r/20210910233159.115896-13-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c