| 53caecb8 | 26-Oct-2021 |
Konstantin Ananyev <[email protected]> |
pdump: fix freeing statistics memzone
rte_pdump_init() always allocates new memzone for pdump_stats. Though rte_pdump_uninit() never frees it. So the following combination will always fail: rte_pdum
pdump: fix freeing statistics memzone
rte_pdump_init() always allocates new memzone for pdump_stats. Though rte_pdump_uninit() never frees it. So the following combination will always fail: rte_pdump_init(); rte_pdump_uninit(); rte_pdump_init(); The issue was caught by pdump_autotest UT. While first test run successful, any consecutive runs of this test-case will fail. Fix the issue by calling rte_memzone_free() for statistics memzone.
Fixes: 10f726efe26c ("pdump: support pcapng and filtering")
Signed-off-by: Konstantin Ananyev <[email protected]> Acked-by: Reshma Pattan <[email protected]> Acked-by: Stephen Hemminger <[email protected]>
show more ...
|