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

Function cpfl_remove_cfgqs

dpdk/drivers/net/cpfl/cpfl_ethdev.c:1961–1978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1959}
1960
1961static void
1962cpfl_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
1980static int
1981cpfl_add_cfgqs(struct cpfl_adapter_ext *adapter)

Callers 3

cpfl_add_cfgqsFunction · 0.85
cpfl_ctrl_path_closeFunction · 0.85
cpfl_ctrl_path_openFunction · 0.85

Calls 2

cpfl_vport_ctlq_removeFunction · 0.85
idpf_free_dma_memFunction · 0.85

Tested by

no test coverage detected