vmxnet3: get descriptor limits
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 27 Oct 2015 12:51:49 +0000 (12:51 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 1 Nov 2015 23:14:00 +0000 (00:14 +0100)
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Yong Wang <yongwang@vmware.com>
Acked-by: Remy Horton <remy.horton@intel.com>
drivers/net/vmxnet3/vmxnet3_ethdev.c

index a70be5c..3745b7d 100644 (file)
@@ -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 */