src/dpdk/drivers/net/sfc/sfc_ethdev.c
static void
sfc_tx_queue_info_get(struct rte_eth_dev *dev, uint16_t tx_queue_id,
		      struct rte_eth_txq_info *qinfo)
{
	struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
	struct sfc_txq_info *txq_info;

	SFC_ASSERT(tx_queue_id < sas->txq_count);

	txq_info = &sas->txq_info[tx_queue_id];

	memset(qinfo, 0, sizeof(*qinfo));

	qinfo->conf.offloads = txq_info->offloads;
	qinfo->conf.tx_free_thresh = txq_info->free_thresh;
	qinfo->conf.tx_deferred_start = txq_info->deferred_start;
	qinfo->nb_desc = txq_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_tx_queue_info_get(struct rte_eth_dev *dev, uint16_t tx_queue_id,
		      struct rte_eth_txq_info *qinfo)
{
	struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
	struct sfc_txq_info *txq_info;
	SFC_ASSERT(tx_queue_id < sas->txq_count);
	txq_info = &sas->txq_info[tx_queue_id];
	memset(qinfo, 0, sizeof(*qinfo));
	qinfo->conf.offloads = txq_info->offloads;
	qinfo->conf.tx_free_thresh = txq_info->free_thresh;
	qinfo->conf.tx_deferred_start = txq_info->deferred_start;
	qinfo->nb_desc = txq_info->entries;
}
static void sfc_tx_queue_info_get ( struct rte_eth_dev * dev , uint16_t tx_queue_id , struct rte_eth_txq_info * qinfo ) { struct sfc_adapter_shared * sas = sfc_adapter_shared_by_eth_dev ( dev ) ; struct sfc_txq_info * txq_info ; SFC_ASSERT ( tx_queue_id < sas -> txq_count ) ; txq_info = & sas -> txq_info [ tx_queue_id ] ; memset ( qinfo , 0 , sizeof ( * qinfo ) ) ; qinfo -> conf . offloads = txq_info -> offloads ; qinfo -> conf . tx_free_thresh = txq_info -> free_thresh ; qinfo -> conf . tx_deferred_start = txq_info -> deferred_start ; qinfo -> nb_desc = txq_info -> entries ; }
The function is used by the secondary process as well.
The function is used by the secondary process as well .