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

Function cpfl_stop_cfgqs

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

Source from the content-addressed store, hash-verified

1899}
1900
1901static int
1902cpfl_stop_cfgqs(struct cpfl_adapter_ext *adapter)
1903{
1904 int i, ret;
1905
1906 for (i = 0; i < CPFL_TX_CFGQ_NUM; i++) {
1907 ret = idpf_vc_queue_switch(&adapter->ctrl_vport.base, i, false, false);
1908 if (ret) {
1909 PMD_DRV_LOG(ERR, "Fail to disable Tx config queue.");
1910 return ret;
1911 }
1912 }
1913
1914 for (i = 0; i < CPFL_RX_CFGQ_NUM; i++) {
1915 ret = idpf_vc_queue_switch(&adapter->ctrl_vport.base, i, true, false);
1916 if (ret) {
1917 PMD_DRV_LOG(ERR, "Fail to disable Rx config queue.");
1918 return ret;
1919 }
1920 }
1921
1922 return 0;
1923}
1924
1925static int
1926cpfl_start_cfgqs(struct cpfl_adapter_ext *adapter)

Callers 2

cpfl_ctrl_path_closeFunction · 0.85
cpfl_ctrl_path_openFunction · 0.85

Calls 1

idpf_vc_queue_switchFunction · 0.85

Tested by

no test coverage detected