src/dpdk/drivers/net/sfc/sfc_ethdev.c
static void
sfc_rx_queue_info_get(struct rte_eth_dev *dev, uint16_t rx_queue_id,
		      struct rte_eth_rxq_info *qinfo)
{
	struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
	struct sfc_rxq_info *rxq_info;

	SFC_ASSERT(rx_queue_id < sas->rxq_count);

	rxq_info = &sas->rxq_info[rx_queue_id];

	qinfo->mp = rxq_info->refill_mb_pool;
	qinfo->conf.rx_free_thresh = rxq_info->refill_threshold;
	qinfo->conf.rx_drop_en = 1;
	qinfo->conf.rx_deferred_start = rxq_info->deferred_start;
	qinfo->conf.offloads = dev->data->dev_conf.rxmode.offloads;
	if (rxq_info->type_flags & EFX_RXQ_FLAG_SCATTER) {
		qinfo->conf.offloads |= DEV_RX_OFFLOAD_SCATTER;
		qinfo->scattered_rx = 1;
	}
	qinfo->nb_desc = rxq_info->entries;
}
/*
 * The function is used by the secondary process as well. It must not
 * use any process-local pointers from the adapter data.
 */
The function is used by the secondary process as well. It must not
use any process-local pointers from the adapter data.
The function is used by the secondary process as well . It must not use any process - local pointers from the adapter data .
static void
sfc_rx_queue_info_get(struct rte_eth_dev *dev, uint16_t rx_queue_id,
		      struct rte_eth_rxq_info *qinfo)
{
	struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
	struct sfc_rxq_info *rxq_info;
	SFC_ASSERT(rx_queue_id < sas->rxq_count);
	rxq_info = &sas->rxq_info[rx_queue_id];
	qinfo->mp = rxq_info->refill_mb_pool;
	qinfo->conf.rx_free_thresh = rxq_info->refill_threshold;
	qinfo->conf.rx_drop_en = 1;
	qinfo->conf.rx_deferred_start = rxq_info->deferred_start;
	qinfo->conf.offloads = dev->data->dev_conf.rxmode.offloads;
	if (rxq_info->type_flags & EFX_RXQ_FLAG_SCATTER) {
		qinfo->conf.offloads |= DEV_RX_OFFLOAD_SCATTER;
		qinfo->scattered_rx = 1;
	}
	qinfo->nb_desc = rxq_info->entries;
}
static void sfc_rx_queue_info_get ( struct rte_eth_dev * dev , uint16_t rx_queue_id , struct rte_eth_rxq_info * qinfo ) { struct sfc_adapter_shared * sas = sfc_adapter_shared_by_eth_dev ( dev ) ; struct sfc_rxq_info * rxq_info ; SFC_ASSERT ( rx_queue_id < sas -> rxq_count ) ; rxq_info = & sas -> rxq_info [ rx_queue_id ] ; qinfo -> mp = rxq_info -> refill_mb_pool ; qinfo -> conf . rx_free_thresh = rxq_info -> refill_threshold ; qinfo -> conf . rx_drop_en = 1 ; qinfo -> conf . rx_deferred_start = rxq_info -> deferred_start ; qinfo -> conf . offloads = dev -> data -> dev_conf . rxmode . offloads ; if ( rxq_info -> type_flags & EFX_RXQ_FLAG_SCATTER ) { qinfo -> conf . offloads |= DEV_RX_OFFLOAD_SCATTER ; qinfo -> scattered_rx = 1 ; } qinfo -> nb_desc = rxq_info -> entries ; }
The function is used by the secondary process as well.
The function is used by the secondary process as well .