* [PATCH] fix testpmd show port info error
@ 2015-02-02 6:51 xuelin.shi-KZfg59tc24xl57MIdRCFDg
[not found] ` <1422859901-3896-1-git-send-email-xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: xuelin.shi-KZfg59tc24xl57MIdRCFDg @ 2015-02-02 6:51 UTC (permalink / raw)
To: dev-VfR2kkLFssw
From: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
the port number type should be consistent with librte_cmdline,
else there is potential endian issue.
Signed-off-by: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
---
app/test-pmd/cmdline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 4beb404..488ac63 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -5568,7 +5568,7 @@ cmdline_parse_token_string_t cmd_showport_what =
TOKEN_STRING_INITIALIZER(struct cmd_showport_result, what,
"info#stats#xstats#fdir#stat_qmap");
cmdline_parse_token_num_t cmd_showport_portnum =
- TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT32);
+ TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT8);
cmdline_parse_inst_t cmd_showport = {
.f = cmd_showport_parsed,
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] fix testpmd show port info error
[not found] ` <1422859901-3896-1-git-send-email-xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2015-02-05 9:26 ` Xuelin Shi
[not found] ` <CY1PR0301MB0684331C3A2ADAF8938A13F6863B0-YrwGdl+PljnlCq1ddutYi5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Xuelin Shi @ 2015-02-05 9:26 UTC (permalink / raw)
To: dev-VfR2kkLFssw@public.gmane.org
Hi,
Anybody interested in this patch could have a review or comment on it?
I'm new here. Should I send this patch to some specific maintainer to make this more efficient?
Thanks,
Shi Xuelin
-----Original Message-----
From: xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org [mailto:xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org]
Sent: Monday, February 02, 2015 14:52
To: dev-VfR2kkLFssw@public.gmane.org
Cc: Shi Xuelin-B29237
Subject: [PATCH] fix testpmd show port info error
From: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
the port number type should be consistent with librte_cmdline, else there is potential endian issue.
Signed-off-by: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
---
app/test-pmd/cmdline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4beb404..488ac63 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -5568,7 +5568,7 @@ cmdline_parse_token_string_t cmd_showport_what =
TOKEN_STRING_INITIALIZER(struct cmd_showport_result, what,
"info#stats#xstats#fdir#stat_qmap");
cmdline_parse_token_num_t cmd_showport_portnum =
- TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT32);
+ TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT8);
cmdline_parse_inst_t cmd_showport = {
.f = cmd_showport_parsed,
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix testpmd show port info error
[not found] ` <CY1PR0301MB0684331C3A2ADAF8938A13F6863B0-YrwGdl+PljnlCq1ddutYi5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2015-02-05 9:58 ` Olivier MATZ
2015-02-06 2:00 ` Xuelin Shi
1 sibling, 0 replies; 4+ messages in thread
From: Olivier MATZ @ 2015-02-05 9:58 UTC (permalink / raw)
To: Xuelin Shi, dev-VfR2kkLFssw@public.gmane.org
Hi,
On 02/05/2015 10:26 AM, Xuelin Shi wrote:
> Hi,
>
> Anybody interested in this patch could have a review or comment on it?
> I'm new here. Should I send this patch to some specific maintainer to make this more efficient?
>
> Thanks,
> Shi Xuelin
>
> -----Original Message-----
> From: xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org [mailto:xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org]
> Sent: Monday, February 02, 2015 14:52
> To: dev-VfR2kkLFssw@public.gmane.org
> Cc: Shi Xuelin-B29237
> Subject: [PATCH] fix testpmd show port info error
>
> From: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
>
> the port number type should be consistent with librte_cmdline, else there is potential endian issue.
>
> Signed-off-by: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> ---
> app/test-pmd/cmdline.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4beb404..488ac63 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -5568,7 +5568,7 @@ cmdline_parse_token_string_t cmd_showport_what =
> TOKEN_STRING_INITIALIZER(struct cmd_showport_result, what,
> "info#stats#xstats#fdir#stat_qmap");
> cmdline_parse_token_num_t cmd_showport_portnum =
> - TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT32);
> + TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT8);
>
> cmdline_parse_inst_t cmd_showport = {
> .f = cmd_showport_parsed,
> --
Thank you for reporting this. However I think it should be UINT8
instead of INT8.
According to http://dpdk.org/dev, I think a better title could be
"testpmd: fix port parsing in show port info command"
Apart from this,
Acked-by: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
I think it would be less work for Thomas if you can submit
a v2 that includes these 2 changes.
Regards,
Olivier
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix testpmd show port info error
[not found] ` <CY1PR0301MB0684331C3A2ADAF8938A13F6863B0-YrwGdl+PljnlCq1ddutYi5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-02-05 9:58 ` Olivier MATZ
@ 2015-02-06 2:00 ` Xuelin Shi
1 sibling, 0 replies; 4+ messages in thread
From: Xuelin Shi @ 2015-02-06 2:00 UTC (permalink / raw)
To: olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Cc: dev-VfR2kkLFssw@public.gmane.org
Hi Olivier,
Would you please help to review the bottom patch?
Thanks,
Shi Xuelin
-----Original Message-----
From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Xuelin Shi
Sent: Thursday, February 05, 2015 17:27
To: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [dpdk-dev] [PATCH] fix testpmd show port info error
Hi,
Anybody interested in this patch could have a review or comment on it?
I'm new here. Should I send this patch to some specific maintainer to make this more efficient?
Thanks,
Shi Xuelin
-----Original Message-----
From: xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org [mailto:xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org]
Sent: Monday, February 02, 2015 14:52
To: dev-VfR2kkLFssw@public.gmane.org
Cc: Shi Xuelin-B29237
Subject: [PATCH] fix testpmd show port info error
From: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
the port number type should be consistent with librte_cmdline, else there is potential endian issue.
Signed-off-by: Xuelin Shi <xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
---
app/test-pmd/cmdline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4beb404..488ac63 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -5568,7 +5568,7 @@ cmdline_parse_token_string_t cmd_showport_what =
TOKEN_STRING_INITIALIZER(struct cmd_showport_result, what,
"info#stats#xstats#fdir#stat_qmap");
cmdline_parse_token_num_t cmd_showport_portnum =
- TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT32);
+ TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT8);
cmdline_parse_inst_t cmd_showport = {
.f = cmd_showport_parsed,
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-06 2:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 6:51 [PATCH] fix testpmd show port info error xuelin.shi-KZfg59tc24xl57MIdRCFDg
[not found] ` <1422859901-3896-1-git-send-email-xuelin.shi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-02-05 9:26 ` Xuelin Shi
[not found] ` <CY1PR0301MB0684331C3A2ADAF8938A13F6863B0-YrwGdl+PljnlCq1ddutYi5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-02-05 9:58 ` Olivier MATZ
2015-02-06 2:00 ` Xuelin Shi
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).