fm10k: get descriptor limits
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 27 Oct 2015 12:51:47 +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: Remy Horton <remy.horton@intel.com>
drivers/net/fm10k/fm10k_ethdev.c

index 941dae7..caa1272 100644 (file)
@@ -1134,6 +1134,17 @@ fm10k_dev_infos_get(struct rte_eth_dev *dev,
                                ETH_TXQ_FLAGS_NOOFFLOADS,
        };
 
+       dev_info->rx_desc_lim = (struct rte_eth_desc_lim) {
+               .nb_max = FM10K_MAX_RX_DESC,
+               .nb_min = FM10K_MIN_RX_DESC,
+               .nb_align = FM10K_MULT_RX_DESC,
+       };
+
+       dev_info->tx_desc_lim = (struct rte_eth_desc_lim) {
+               .nb_max = FM10K_MAX_TX_DESC,
+               .nb_min = FM10K_MIN_TX_DESC,
+               .nb_align = FM10K_MULT_TX_DESC,
+       };
 }
 
 static int