From: Ivan Ilchenko Date: Tue, 28 Sep 2021 11:29:05 +0000 (+0300) Subject: net/sfc: fix cleanup order of SW stats X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=993040daca337e78c14082d272b49b4c1c3ca451;p=dpdk.git net/sfc: fix cleanup order of SW stats Fix cleanup order of SW stats structures to be reversed to initialization order. Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells") Cc: stable@dpdk.org Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- 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) void sfc_sw_xstats_close(struct sfc_adapter *sa) { + sfc_sw_xstats_free_queues_bitmap(sa); rte_free(sa->sw_stats.reset_vals); sa->sw_stats.reset_vals = NULL; - - sfc_sw_xstats_free_queues_bitmap(sa); }