From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Bernard Iremonger <bernard.iremonger@intel.com>, dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] app/test-pmd: fix testpmd log of start command
Date: Fri, 18 May 2018 12:52:08 +0100 [thread overview]
Message-ID: <a2537278-70fc-44a9-7e28-de5cc57f7f57@intel.com> (raw)
In-Reply-To: <1526401464-4786-1-git-send-email-bernard.iremonger@intel.com>
On 5/15/2018 5:24 PM, Bernard Iremonger wrote:
> In the testpmd log of the start command, show the RX and TX
> descriptor values from dev_info instead of the default
> values.
>
> Fixes: d44f8a485f5d ("app/testpmd: enable per queue configure")
>
> Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> ---
> app/test-pmd/testpmd.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> index 1344016..5b00f7f 100644
> --- a/app/test-pmd/testpmd.c
> +++ b/app/test-pmd/testpmd.c
> @@ -2308,7 +2308,7 @@ struct pmd_test_command {
> if (rx_drop_en != RTE_PMD_PARAM_UNSET)
> port->rx_conf[qid].rx_drop_en = rx_drop_en;
>
> - port->nb_rx_desc[qid] = nb_rxd;
> + port->nb_rx_desc[qid] = port->dev_info.rx_desc_lim.nb_max;
Hi Bernard,
"rx_desc_lim.nb_max" is not the value we want here.
Also we shouldn't concern what dev_info returns but what is the number device is
configured.
> }
>
> for (qid = 0; qid < nb_txq; qid++) {
> @@ -2330,7 +2330,7 @@ struct pmd_test_command {
> if (tx_free_thresh != RTE_PMD_PARAM_UNSET)
> port->tx_conf[qid].tx_free_thresh = tx_free_thresh;
>
> - port->nb_tx_desc[qid] = nb_txd;
> + port->nb_tx_desc[qid] = port->dev_info.tx_desc_lim.nb_max;
> }
> }
>
>
next prev parent reply other threads:[~2018-05-18 11:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 16:24 Bernard Iremonger
2018-05-18 11:52 ` Ferruh Yigit [this message]
2018-05-21 13:28 ` [dpdk-dev] [PATCH v2] app/testpmd: fix " Bernard Iremonger
2018-05-21 14:15 ` Ferruh Yigit
2018-05-22 9:06 ` Iremonger, Bernard
2018-05-22 10:22 ` [dpdk-dev] [PATCH v3] " Bernard Iremonger
2018-05-22 10:35 ` Ferruh Yigit
2018-05-22 10:46 ` Iremonger, Bernard
2018-05-22 15:10 ` [dpdk-dev] [PATCH v4] " Bernard Iremonger
2018-05-22 16:31 ` Ferruh Yigit
2018-05-22 16:42 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2537278-70fc-44a9-7e28-de5cc57f7f57@intel.com \
--to=ferruh.yigit@intel.com \
--cc=bernard.iremonger@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).