| 1326 | } |
| 1327 | |
| 1328 | int |
| 1329 | ice_dcf_disable_queues(struct ice_dcf_hw *hw) |
| 1330 | { |
| 1331 | struct virtchnl_queue_select queue_select; |
| 1332 | struct dcf_virtchnl_cmd args; |
| 1333 | int err; |
| 1334 | |
| 1335 | if (hw->resetting) |
| 1336 | return 0; |
| 1337 | |
| 1338 | memset(&queue_select, 0, sizeof(queue_select)); |
| 1339 | queue_select.vsi_id = hw->vsi_res->vsi_id; |
| 1340 | |
| 1341 | queue_select.rx_queues = BIT(hw->eth_dev->data->nb_rx_queues) - 1; |
| 1342 | queue_select.tx_queues = BIT(hw->eth_dev->data->nb_tx_queues) - 1; |
| 1343 | |
| 1344 | memset(&args, 0, sizeof(args)); |
| 1345 | args.v_op = VIRTCHNL_OP_DISABLE_QUEUES; |
| 1346 | args.req_msg = (u8 *)&queue_select; |
| 1347 | args.req_msglen = sizeof(queue_select); |
| 1348 | |
| 1349 | err = ice_dcf_execute_virtchnl_cmd(hw, &args); |
| 1350 | if (err) |
| 1351 | PMD_DRV_LOG(ERR, |
| 1352 | "Failed to execute command of OP_DISABLE_QUEUES"); |
| 1353 | |
| 1354 | return err; |
| 1355 | } |
| 1356 | |
| 1357 | int |
| 1358 | ice_dcf_query_stats(struct ice_dcf_hw *hw, |
no test coverage detected