| 1959 | } |
| 1960 | |
| 1961 | static void |
| 1962 | cpfl_remove_cfgqs(struct cpfl_adapter_ext *adapter) |
| 1963 | { |
| 1964 | struct idpf_hw *hw = (struct idpf_hw *)(&adapter->base.hw); |
| 1965 | struct cpfl_ctlq_create_info *create_cfgq_info; |
| 1966 | int i; |
| 1967 | |
| 1968 | create_cfgq_info = adapter->cfgq_info; |
| 1969 | |
| 1970 | for (i = 0; i < CPFL_CFGQ_NUM; i++) { |
| 1971 | if (adapter->ctlqp[i]) |
| 1972 | cpfl_vport_ctlq_remove(hw, adapter->ctlqp[i]); |
| 1973 | if (create_cfgq_info[i].ring_mem.va) |
| 1974 | idpf_free_dma_mem(&adapter->base.hw, &create_cfgq_info[i].ring_mem); |
| 1975 | if (create_cfgq_info[i].buf_mem.va) |
| 1976 | idpf_free_dma_mem(&adapter->base.hw, &create_cfgq_info[i].buf_mem); |
| 1977 | } |
| 1978 | } |
| 1979 | |
| 1980 | static int |
| 1981 | cpfl_add_cfgqs(struct cpfl_adapter_ext *adapter) |
no test coverage detected