* The function is used by the secondary process as well. It must not * use any process-local pointers from the adapter data. */
| 1310 | * use any process-local pointers from the adapter data. |
| 1311 | */ |
| 1312 | static void |
| 1313 | sfc_rx_queue_info_get(struct rte_eth_dev *dev, uint16_t ethdev_qid, |
| 1314 | struct rte_eth_rxq_info *qinfo) |
| 1315 | { |
| 1316 | struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev); |
| 1317 | sfc_ethdev_qid_t sfc_ethdev_qid = ethdev_qid; |
| 1318 | struct sfc_rxq_info *rxq_info; |
| 1319 | |
| 1320 | rxq_info = sfc_rxq_info_by_ethdev_qid(sas, sfc_ethdev_qid); |
| 1321 | |
| 1322 | qinfo->mp = rxq_info->refill_mb_pool; |
| 1323 | qinfo->conf.rx_free_thresh = rxq_info->refill_threshold; |
| 1324 | qinfo->conf.rx_drop_en = 1; |
| 1325 | qinfo->conf.rx_deferred_start = rxq_info->deferred_start; |
| 1326 | qinfo->conf.offloads = dev->data->dev_conf.rxmode.offloads; |
| 1327 | if (rxq_info->type_flags & EFX_RXQ_FLAG_SCATTER) { |
| 1328 | qinfo->conf.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER; |
| 1329 | qinfo->scattered_rx = 1; |
| 1330 | } |
| 1331 | qinfo->nb_desc = rxq_info->entries; |
| 1332 | } |
| 1333 | |
| 1334 | /* |
| 1335 | * The function is used by the secondary process as well. It must not |
nothing calls this directly
no test coverage detected