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

Function sfc_tx_queue_info_get

dpdk/drivers/net/sfc/sfc_ethdev.c:1338–1355  ·  view source on GitHub ↗

* The function is used by the secondary process as well. It must not * use any process-local pointers from the adapter data. */

Source from the content-addressed store, hash-verified

1336 * use any process-local pointers from the adapter data.
1337 */
1338static void
1339sfc_tx_queue_info_get(struct rte_eth_dev *dev, uint16_t ethdev_qid,
1340 struct rte_eth_txq_info *qinfo)
1341{
1342 struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
1343 struct sfc_txq_info *txq_info;
1344
1345 SFC_ASSERT(ethdev_qid < sas->ethdev_txq_count);
1346
1347 txq_info = sfc_txq_info_by_ethdev_qid(sas, ethdev_qid);
1348
1349 memset(qinfo, 0, sizeof(*qinfo));
1350
1351 qinfo->conf.offloads = txq_info->offloads;
1352 qinfo->conf.tx_free_thresh = txq_info->free_thresh;
1353 qinfo->conf.tx_deferred_start = txq_info->deferred_start;
1354 qinfo->nb_desc = txq_info->entries;
1355}
1356
1357/*
1358 * The function is used by the secondary process as well. It must not

Callers

nothing calls this directly

Calls 3

memsetFunction · 0.85

Tested by

no test coverage detected