| 829 | } |
| 830 | |
| 831 | static void |
| 832 | ice_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 | |
| 860 | static void |
| 861 | ice_vsi_config_default_rss(struct ice_aqc_vsi_props *info) |
no test coverage detected