diff mbox series

[04/11] net/sfc: fix cleanup order of SW stats

Message ID 20210928112912.785412-5-andrew.rybchenko@oktetlabs.ru (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series net/sfc: support per-queue stats on EF100 | expand


Context Check Description
ci/checkpatch success coding style OK

Commit Message

Andrew Rybchenko Sept. 28, 2021, 11:29 a.m. UTC
From: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>

Fix cleanup order of SW stats structures to be reversed
to initialization order.

Fixes: fdd7719eb3c ("net/sfc: add xstats for Rx/Tx doorbells")
Cc: stable@dpdk.org

Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
 drivers/net/sfc/sfc_sw_stats.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series


diff --git a/drivers/net/sfc/sfc_sw_stats.c b/drivers/net/sfc/sfc_sw_stats.c
index 108f301822..c297bb8294 100644
--- a/drivers/net/sfc/sfc_sw_stats.c
+++ b/drivers/net/sfc/sfc_sw_stats.c
@@ -566,8 +566,7 @@  sfc_sw_xstats_init(struct sfc_adapter *sa)
 sfc_sw_xstats_close(struct sfc_adapter *sa)
+	sfc_sw_xstats_free_queues_bitmap(sa);
 	sa->sw_stats.reset_vals = NULL;
-	sfc_sw_xstats_free_queues_bitmap(sa);