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 <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
This commit is contained in:
parent
e00c3a0c1b
commit
993040daca
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user