src/dpdk/drivers/net/nfb/nfb_ethdev.c
static int
nfb_eth_dev_info(struct rte_eth_dev *dev,
	struct rte_eth_dev_info *dev_info)
{
	dev_info->max_mac_addrs = 1;
	dev_info->max_rx_pktlen = (uint32_t)-1;
	dev_info->max_rx_queues = dev->data->nb_rx_queues;
	dev_info->max_tx_queues = dev->data->nb_tx_queues;
	dev_info->speed_capa = ETH_LINK_SPEED_100G;

	return 0;
}
/**
 * DPDK callback to get information about the device.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 * @param[out] info
 *   Info structure output buffer.
 */
DPDK callback to get information about the device.
@param dev
Pointer to Ethernet device structure.
@param[out] info
Info structure output buffer.
DPDK callback to get information about the device . @param dev Pointer to Ethernet device structure . @param [ out ] info Info structure output buffer .
static int
nfb_eth_dev_info(struct rte_eth_dev *dev,
	struct rte_eth_dev_info *dev_info)
{
	dev_info->max_mac_addrs = 1;
	dev_info->max_rx_pktlen = (uint32_t)-1;
	dev_info->max_rx_queues = dev->data->nb_rx_queues;
	dev_info->max_tx_queues = dev->data->nb_tx_queues;
	dev_info->speed_capa = ETH_LINK_SPEED_100G;
	return 0;
}
static int nfb_eth_dev_info ( struct rte_eth_dev * dev , struct rte_eth_dev_info * dev_info ) { dev_info -> max_mac_addrs = 1 ; dev_info -> max_rx_pktlen = ( uint32_t ) -1 ; dev_info -> max_rx_queues = dev -> data -> nb_rx_queues ; dev_info -> max_tx_queues = dev -> data -> nb_tx_queues ; dev_info -> speed_capa = ETH_LINK_SPEED_100G ; return 0 ; }
DPDK callback to get information about the device.
DPDK callback to get information about the device .