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

Function ice_dcf_disable_queues

dpdk/drivers/net/ice/ice_dcf.c:1328–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1326}
1327
1328int
1329ice_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
1357int
1358ice_dcf_query_stats(struct ice_dcf_hw *hw,

Callers 1

ice_dcf_stop_queuesFunction · 0.85

Calls 2

memsetFunction · 0.85

Tested by

no test coverage detected