app/testpmd: fix Tx/Rx descriptor query error log
PATCH 1/1 app/testpmd: fix Tx/Rx descriptor query error log
From: Hongbo Zheng <[email protected]>
Currently in testpmd, if we input "show port 0 rxq 0 desc 9999 status" and if rte_eth_rx_descriptor_status return a negative value, testpmd will print "Invalid queueid = 0", seems user input an invalid queueid, while the actual situation may be that 9999 is out of bounds, current information is misleading to users.
This patch modify the Tx/Rx descriptor query error information in testpmd by add offset information, now if we fail to query Tx/Rx descriptor, testpmd will print "Invalid queueid = 0, offset = 9999", then we can check our input.
--- app/test-pmd/cmdline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
app/test-pmd/cmdline.c +4 -2
@@ -16633,7 +16633,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 queueid = %d, offset = %d\n" , + res->cmd_qid, res->cmd_did);return ; }if (rc ==RTE_ETH_RX_DESC_AVAIL )
@@ -16646,7 +16647,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 queueid = %d, offset = %d\n" , + res->cmd_qid, res->cmd_did);return ; }if (rc ==RTE_ETH_TX_DESC_FULL )
Signature · 1 line
2.7.4
Hi
Quoted 11 lines
-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Saturday, March 27, 2021 15:35
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>
Subject: [PATCH] app/testpmd: fix Tx/Rx descriptor query error logFrom: Hongbo Zheng <[email protected]>
Currently in testpmd, if we input "show port 0 rxq 0 desc 9999 status" and if
rte_eth_rx_descriptor_statusreturn a negative value, testpmd will print
returns
Quoted 1 line
"Invalid queueid = 0", seems user input an invalid queueid, while the actual
Users input/ user inputs
Quoted 4 lines
situation may be that 9999 is out of bounds, current information is misleading to users.
This patch modify the Tx/Rx descriptor query error information in testpmd by
modifies
Quoted 1 line
add offset information, now if we fail to query Tx/Rx descriptor, testpmd will
adding
Quoted 1 line
print "Invalid queueid = 0, offset = 9999", then we can check our input.
The commit log has grammar mistakes. And I think you can simply explain what the patch does like:
This patch adds more err info for Tx/Rx descriptor query command.
And the print should be "Invalid input: queue id = 0, desc id = 9999" because you still don't tell users if it's queue id err or desc id err.
BRs
Xiaoyun
Quoted 38 lines
Fixes fae9aa717d6c ("app/testpmd: support checking descriptor status")Signed-off-by Hongbo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>--- app/test-pmd/cmdline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)app/test-pmd/cmdline.c index renamed from app/test-pmd/cmdline.c +0
-0287d7a0..1a74a61 100644
app/test-pmd/cmdline.c +2
-1@@ -16633,7 +16633,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 queueid = %d, offset = %d\n" , + res->cmd_qid, res->cmd_did);return ; }app/test-pmd/cmdline.c +2
-1if (rc ==RTE_ETH_RX_DESC_AVAIL )@@ -16646,7 +16647,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 queueid = %d, offset = %d\n" , + res->cmd_qid, res->cmd_did);return ; }if (rc ==
RTE_ETH_TX_DESC_FULL)
--
2.7.4
Hi, xiaoyun,
All has been done in v2, please review it, thanks.
Quoted 73 lines · Xiaoyun
Hi
Quoted 11 lines
-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Saturday, March 27, 2021 15:35
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>
Subject: [PATCH] app/testpmd: fix Tx/Rx descriptor query error logFrom: Hongbo Zheng <[email protected]>
Currently in testpmd, if we input "show port 0 rxq 0 desc 9999 status" and if
rte_eth_rx_descriptor_statusreturn a negative value, testpmd will printreturns
Quoted 1 line
"Invalid queueid = 0", seems user input an invalid queueid, while the actual
Users input/ user inputs
Quoted 4 lines
situation may be that 9999 is out of bounds, current information is misleading to users.
This patch modify the Tx/Rx descriptor query error information in testpmd by
modifies
Quoted 1 line
add offset information, now if we fail to query Tx/Rx descriptor, testpmd will
adding
Quoted 1 line
print "Invalid queueid = 0, offset = 9999", then we can check our input.
The commit log has grammar mistakes. And I think you can simply explain what the patch does like:
This patch adds more err info for Tx/Rx descriptor query command.And the print should be "Invalid input: queue id = 0, desc id = 9999" because you still don't tell users if it's queue id err or desc id err.
BRs
XiaoyunQuoted 35 lines
Fixes fae9aa717d6c ("app/testpmd: support checking descriptor status")Signed-off-by Hongbo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>--- app/test-pmd/cmdline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)app/test-pmd/cmdline.c index renamed from app/test-pmd/cmdline.c +0
-0287d7a0..1a74a61 100644
app/test-pmd/cmdline.c +2
-1@@ -16633,7 +16633,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 queueid = %d, offset = %d\n" , + res->cmd_qid, res->cmd_did);return ; }if (rc ==
RTE_ETH_RX_DESC_AVAIL)app/test-pmd/cmdline.c +2
-1@@ -16646,7 +16647,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 queueid = %d, offset = %d\n" , + res->cmd_qid, res->cmd_did);return ; }Quoted 3 lines
if (rc ==
RTE_ETH_TX_DESC_FULL)
--
2.7.4.
PATCH v2 1/1 app/testpmd: fix Tx/Rx descriptor query error log
In reply to Min Hu (Connor)From: Hongbo Zheng <[email protected]>
This patch adds more err info for Tx/Rx descriptor query command.
---
v2:
* Fixed error log info and simply the commit info.
--- app/test-pmd/cmdline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
app/test-pmd/cmdline.c +4 -2
@@ -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 )
Signature · 1 line
2.7.4
Hi
Quoted 52 lines
-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Monday, March 29, 2021 14:47
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>
Subject: [PATCH v2] app/testpmd: fix Tx/Rx descriptor query error logFrom: Hongbo Zheng <[email protected]>
This patch adds more err info for Tx/Rx descriptor query command.
Fixes fae9aa717d6c ("app/testpmd: support checking descriptor status")Signed-off-by Hongbo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>---
v2:
* Fixed error log info and simply the commit info.--- app/test-pmd/cmdline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)app/test-pmd/cmdline.c index renamed from app/test-pmd/cmdline.c +0
-014110eb..f44116b 100644
app/test-pmd/cmdline.c +2
-1@@ -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 ;app/test-pmd/cmdline.c +2
-1}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 ;app/test-pmd/cmdline.c +0
-1}if (rc ==RTE_ETH_TX_DESC_FULL ) --
Quoted 1 line
2.7.4
Ferruh Yigit
AppliedQuoted 11 lines · Xiaoyun
Hi
Quoted 9 lines
-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Monday, March 29, 2021 14:47
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>
Subject: [PATCH v2] app/testpmd: fix Tx/Rx descriptor query error logFrom: Hongbo Zheng <[email protected]>
Quoted 9 lines
Quoted 7 lines
This patch adds more err info for Tx/Rx descriptor query command.
Fixes fae9aa717d6c ("app/testpmd: support checking descriptor status")Signed-off-by Hongbo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]> >Acked-by Xiaoyun Li <[email protected]>
Applied to dpdk-next-net/main, thanks.
Quoted 9 lines · Min Hu (Connor)
From: Hongbo Zheng <[email protected]>
This patch adds more err info for Tx/Rx descriptor query command.
Fixes fae9aa717d6c ("app/testpmd: support checking descriptor status")Signed-off-by Hongbo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>
Off the topic.
This is the patch 90000 in patchwork! Thanks to everyone who contributed!
https://patches.dpdk.org/api/1.2/patches/90000/
The historical numbers from DPDK patchwork:
90000 - March 29, 2021 (172 days) [ 5 months and 21 days / 24 weeks and 4 days ]
80000 - Oct. 8, 2020 (153 days)
70000 - May 8, 2020 (224 days)
60000 - Sept. 27, 2019 (248 days)
50000 - Jan. 22, 2019 (253 days)
40000 - May 14, 2018 (217 days)
30000 - Oct. 9, 2017 (258 days)
20000 - Jan. 25, 2017 (372 days)
10000 - Jan. 20, 2016 (645 days)
00001 - April 16, 2014
Another 10K of patches faster than rough average ~250 days, assuming v20.11 LTS workload contributed to this stat but not investigated deeply.
Thanks again to all contributors.