net/ice: fix flow director counter resource release

All the counter resources should be cleaned up when teardown.

Fixes: 0f880c3df1 ("net/ice: add flow director counter resource init/release")

Signed-off-by: Shougang Wang <shougangx.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
This commit is contained in:
Shougang Wang 2019-11-13 01:37:57 +00:00 committed by Ferruh Yigit
parent 3916416737
commit 01af3d0a41

View File

@ -252,6 +252,9 @@ ice_fdir_counter_release(struct ice_pf *pf)
for (i = 0; i < container->index_free; i++)
rte_free(container->pools[i]);
TAILQ_INIT(&container->pool_list);
container->index_free = 0;
return 0;
}