net/bnxt: clear cached statistics
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 13 Jul 2021 13:34:13 +0000 (19:04 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 15 Jul 2021 00:31:32 +0000 (02:31 +0200)
commit84fd852caac19795d0a05af8dabce8f011fe61a4
tree1e8a38d65985fe2c08be057d2268a6eb0a75ae65
parent95de0faf12d4a226d77ce9fbc52df83e63904c3b
net/bnxt: clear cached statistics

As part of the workaround put in the commit "219842b9990c",
driver caches the last read stats values from the hardware.
But this is not cleared during the clear stats operation. This
results in showing up stale stats values while reading the stats
after the clear operation.

Fixes: 219842b9990c ("net/bnxt: workaround spurious zero stats in Thor")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_stats.c