From: Konstantin Ananyev Date: Tue, 27 Oct 2015 12:51:49 +0000 (+0000) Subject: vmxnet3: get descriptor limits X-Git-Tag: spdx-start~8211 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cac43b19e36e386881c54c9f16a37ca2593f1d6c;p=dpdk.git vmxnet3: get descriptor limits Signed-off-by: Konstantin Ananyev Acked-by: Yong Wang Acked-by: Remy Horton --- diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c086..3745b7df92 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -677,6 +677,18 @@ vmxnet3_dev_info_get(__attribute__((unused))struct rte_eth_dev *dev, struct rte_ dev_info->default_txconf.txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS | ETH_TXQ_FLAGS_NOOFFLOADS; dev_info->flow_type_rss_offloads = VMXNET3_RSS_OFFLOAD_ALL; + + dev_info->rx_desc_lim = (struct rte_eth_desc_lim) { + .nb_max = VMXNET3_RX_RING_MAX_SIZE, + .nb_min = VMXNET3_DEF_RX_RING_SIZE, + .nb_align = 1, + }; + + dev_info->tx_desc_lim = (struct rte_eth_desc_lim) { + .nb_max = VMXNET3_TX_RING_MAX_SIZE, + .nb_min = VMXNET3_DEF_TX_RING_SIZE, + .nb_align = 1, + }; } /* return 0 means link status changed, -1 means not changed */