Re: [dpdk-dev] [PATCH v4 11/11] app/testpmd: fix usage text
From: Bing Zhao <hidden>
Date: 2021-03-22 09:05:25
Hi Thomas,
-----Original Message----- From: Jens Freimann <redacted> Sent: Monday, March 22, 2021 4:27 PM To: NBU-Contact-Thomas Monjalon <redacted> Cc: dev@dpdk.org; david.marchand@redhat.com; stable@dpdk.org; Ajit Khaparde [off-list ref]; Bruce Richardson [off-list ref]; Andrew Rybchenko [off-list ref]; Xiaoyun Li [off-list ref]; Ori Kam [off-list ref]; Bing Zhao [off-list ref]; Bernard Iremonger [off-list ref]; Kevin Traynor [off-list ref]; Stephen Hemminger [off-list ref]; Maciej Czekaj [off-list ref]; Pablo de Lara [off-list ref] Subject: Re: [dpdk-dev] [PATCH v4 11/11] app/testpmd: fix usage text External email: Use caution opening links or attachments On Sun, Mar 21, 2021 at 11:31:15PM +0100, Thomas Monjalon wrote:quoted
The options help text was including an incomplete and redundantsummaryquoted
of the options before explaining each. The summary is dropped. The details of the option --hairpin-mode had an extra space,breakingquoted
the alignment with the next line. There were some mismatches between options in the usage text sed -rn 's/.*\(" *--([a-z-]*)[=: ].*/\1/p' app/test-pmd/parameters.c and the options declared in lgopts array sed -rn 's/.*\{.*"(.*)",.*,.*,.*},.*/\1/p' app/test-pmd/parameters.c The misses were: --no-numa --enable-scatter --tx-ip --tx-udp --noisy-lkup-num-reads-writes The option --ports was not implemented. Fixes: 01817b10d27c ("app/testpmd: change hairpin queues setup") Fixes: 3c156061b938 ("app/testpmd: add noisy neighbour forwarding mode") Fixes: bf5b2126bf44 ("app/testpmd: add ability to set Tx IP and UDP parameters") Fixes: 0499793854f5 ("app/testpmd: add scatter enabling option") Fixes: 999b2ee0fe45 ("app/testpmd: enable NUMA support by default") Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <redacted> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Bruce Richardson <redacted> Acked-by: Andrew Rybchenko <redacted> --- app/test-pmd/parameters.c | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-)Thank you Thomas! Reviewed-by: Jens Freimann <redacted> regards, Jens
Reviewed-by: Bing Zhao <redacted> Thanks a lot for the help.