From: Konstantin Ananyev Date: Tue, 27 Oct 2015 12:51:47 +0000 (+0000) Subject: fm10k: get descriptor limits X-Git-Tag: spdx-start~8213 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=37cec43e9cd43a5099469380eda1ad1e270234d5;p=dpdk.git fm10k: get descriptor limits Signed-off-by: Konstantin Ananyev Acked-by: Remy Horton --- diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 941dae7f21..caa12729e2 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -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