src/dpdk/drivers/net/txgbe/txgbe_rxtx.c
static inline uint32_t
txgbe_get_rscctl_maxdesc(struct rte_mempool *pool)
{
	struct rte_pktmbuf_pool_private *mp_priv = rte_mempool_get_priv(pool);

	uint16_t maxdesc =
		RTE_IPV4_MAX_PKT_LEN /
			(mp_priv->mbuf_data_room_size - RTE_PKTMBUF_HEADROOM);

	if (maxdesc >= 16)
		return TXGBE_RXCFG_RSCMAX_16;
	else if (maxdesc >= 8)
		return TXGBE_RXCFG_RSCMAX_8;
	else if (maxdesc >= 4)
		return TXGBE_RXCFG_RSCMAX_4;
	else
		return TXGBE_RXCFG_RSCMAX_1;
}
/**
 * txgbe_get_rscctl_maxdesc
 *
 * @pool Memory pool of the Rx queue
 */
txgbe_get_rscctl_maxdesc
@pool Memory pool of the Rx queue
txgbe_get_rscctl_maxdesc @pool Memory pool of the Rx queue
static inline uint32_t
txgbe_get_rscctl_maxdesc(struct rte_mempool *pool)
{
	struct rte_pktmbuf_pool_private *mp_priv = rte_mempool_get_priv(pool);
	uint16_t maxdesc =
		RTE_IPV4_MAX_PKT_LEN /
			(mp_priv->mbuf_data_room_size - RTE_PKTMBUF_HEADROOM);
	if (maxdesc >= 16)
		return TXGBE_RXCFG_RSCMAX_16;
	else if (maxdesc >= 8)
		return TXGBE_RXCFG_RSCMAX_8;
	else if (maxdesc >= 4)
		return TXGBE_RXCFG_RSCMAX_4;
	else
		return TXGBE_RXCFG_RSCMAX_1;
}
static inline uint32_t txgbe_get_rscctl_maxdesc ( struct rte_mempool * pool ) { struct rte_pktmbuf_pool_private * mp_priv = rte_mempool_get_priv ( pool ) ; uint16_t maxdesc = RTE_IPV4_MAX_PKT_LEN / ( mp_priv -> mbuf_data_room_size - RTE_PKTMBUF_HEADROOM ) ; if ( maxdesc >= 16 ) return TXGBE_RXCFG_RSCMAX_16 ; else if ( maxdesc >= 8 ) return TXGBE_RXCFG_RSCMAX_8 ; else if ( maxdesc >= 4 ) return TXGBE_RXCFG_RSCMAX_4 ; else return TXGBE_RXCFG_RSCMAX_1 ; }
txgbe_get_rscctl_maxdesc
 @pool Memory pool of the Rx queue
txgbe_get_rscctl_maxdesc @pool Memory pool of the Rx queue