MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ice_res_pool_destroy

Function ice_res_pool_destroy

dpdk/drivers/net/ice/ice_ethdev.c:831–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829}
830
831static void
832ice_res_pool_destroy(struct ice_res_pool_info *pool)
833{
834 struct pool_entry *entry, *next_entry;
835
836 if (!pool)
837 return;
838
839 for (entry = LIST_FIRST(&pool->alloc_list);
840 entry && (next_entry = LIST_NEXT(entry, next), 1);
841 entry = next_entry) {
842 LIST_REMOVE(entry, next);
843 rte_free(entry);
844 }
845
846 for (entry = LIST_FIRST(&pool->free_list);
847 entry && (next_entry = LIST_NEXT(entry, next), 1);
848 entry = next_entry) {
849 LIST_REMOVE(entry, next);
850 rte_free(entry);
851 }
852
853 pool->num_free = 0;
854 pool->num_alloc = 0;
855 pool->base = 0;
856 LIST_INIT(&pool->alloc_list);
857 LIST_INIT(&pool->free_list);
858}
859
860static void
861ice_vsi_config_default_rss(struct ice_aqc_vsi_props *info)

Callers 2

ice_dev_initFunction · 0.85
ice_dev_closeFunction · 0.85

Calls 1

rte_freeFunction · 0.85

Tested by

no test coverage detected