bnxt_en: Free port stats during firmware reset.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 16 Nov 2020 00:27:50 +0000 (19:27 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 01:39:46 +0000 (17:39 -0800)
commiteba93de6d31c1734dee59909020a162de612e41e
treef4eac41c3b2190d05cd146d4e93e3de8fd01fbd7
parent4260330b32b14330cfe427d568ac5f5b29b5be3d
bnxt_en: Free port stats during firmware reset.

Firmware is unable to retain the port counters during any kind of
fatal or non-fatal resets, so we must clear the port counters to
avoid false detection of port counter overflow.

Fixes: fea6b3335527 ("bnxt_en: Accumulate all counters.")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c