| 1899 | } |
| 1900 | |
| 1901 | static int |
| 1902 | cpfl_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 | |
| 1925 | static int |
| 1926 | cpfl_start_cfgqs(struct cpfl_adapter_ext *adapter) |
no test coverage detected