mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:51:00 +07:00
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: fea6b33355
("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>
This commit is contained in:
parent
4260330b32
commit
eba93de6d3
@ -4099,7 +4099,8 @@ static void bnxt_free_mem(struct bnxt *bp, bool irq_re_init)
|
||||
bnxt_free_ntp_fltrs(bp, irq_re_init);
|
||||
if (irq_re_init) {
|
||||
bnxt_free_ring_stats(bp);
|
||||
if (!(bp->fw_cap & BNXT_FW_CAP_PORT_STATS_NO_RESET))
|
||||
if (!(bp->fw_cap & BNXT_FW_CAP_PORT_STATS_NO_RESET) ||
|
||||
test_bit(BNXT_STATE_IN_FW_RESET, &bp->state))
|
||||
bnxt_free_port_stats(bp);
|
||||
bnxt_free_ring_grps(bp);
|
||||
bnxt_free_vnics(bp);
|
||||
|
Loading…
Reference in New Issue
Block a user