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:
parent
3916416737
commit
01af3d0a41
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user