[dpdk-dev] [PATCH v2] app/testpmd: fix Tx/Rx descriptor query error log
Li, Xiaoyun
xiaoyun.li at intel.com
Mon Mar 29 09:07:28 CEST 2021
Hi
> -----Original Message-----
> From: Min Hu (Connor) <humin29 at huawei.com>
> Sent: Monday, March 29, 2021 14:47
> To: dev at dpdk.org
> Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; Li, Xiaoyun <xiaoyun.li at intel.com>
> Subject: [PATCH v2] app/testpmd: fix Tx/Rx descriptor query error log
>
> From: Hongbo Zheng <zhenghongbo3 at huawei.com>
>
> This patch adds more err info for Tx/Rx descriptor query command.
>
> Fixes: fae9aa717d6c ("app/testpmd: support checking descriptor status")
> Cc: stable at dpdk.org
>
> Signed-off-by: Hongbo Zheng <zhenghongbo3 at huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
> ---
> v2:
> * Fixed error log info and simply the commit info.
> ---
> app/test-pmd/cmdline.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index
> 14110eb..f44116b 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -16629,7 +16629,8 @@ cmd_show_rx_tx_desc_status_parsed(void
> *parsed_result,
> rc = rte_eth_rx_descriptor_status(res->cmd_pid, res-
> >cmd_qid,
> res->cmd_did);
> if (rc < 0) {
> - printf("Invalid queueid = %d\n", res->cmd_qid);
> + printf("Invalid input: queue id = %d, desc id = %d\n",
> + res->cmd_qid, res->cmd_did);
> return;
> }
> if (rc == RTE_ETH_RX_DESC_AVAIL)
> @@ -16642,7 +16643,8 @@ cmd_show_rx_tx_desc_status_parsed(void
> *parsed_result,
> rc = rte_eth_tx_descriptor_status(res->cmd_pid, res-
> >cmd_qid,
> res->cmd_did);
> if (rc < 0) {
> - printf("Invalid queueid = %d\n", res->cmd_qid);
> + printf("Invalid input: queue id = %d, desc id = %d\n",
> + res->cmd_qid, res->cmd_did);
> return;
> }
> if (rc == RTE_ETH_TX_DESC_FULL)
> --
> 2.7.4
Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>
More information about the dev
mailing list