* The function is used by the secondary process as well. It must not * use any process-local pointers from the adapter data. */
| 1336 | * use any process-local pointers from the adapter data. |
| 1337 | */ |
| 1338 | static void |
| 1339 | sfc_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 |
nothing calls this directly
no test coverage detected