* [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP addresses
@ 2023-12-05 11:31 Bruce Richardson
2023-12-06 6:18 ` [EXT] " Sunil Kumar Kori
2023-12-12 10:25 ` David Marchand
0 siblings, 2 replies; 3+ messages in thread
From: Bruce Richardson @ 2023-12-05 11:31 UTC (permalink / raw)
To: dev; +Cc: Bruce Richardson, stable, Sunil Kumar Kori
The C code generated for the tokens for matching IP addresses in
commandlines was missing the "static" prefix present in the output for
the other data-types.
Fixes: 37666691e9ed ("buildtools: add a tool to generate cmdline boilerplate")
Cc: stable@dpdk.org
Reported-by: Sunil Kumar Kori <skori@marvell.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
buildtools/dpdk-cmdline-gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildtools/dpdk-cmdline-gen.py b/buildtools/dpdk-cmdline-gen.py
index 49b03bee4a..bf1253d949 100755
--- a/buildtools/dpdk-cmdline-gen.py
+++ b/buildtools/dpdk-cmdline-gen.py
@@ -71,7 +71,7 @@ def process_command(lineno, tokens, comment):
elif t_type in ["IP", "IP_ADDR", "IPADDR"]:
result_struct.append(f"\tcmdline_ipaddr_t {t_name};")
initializers.append(
- f"cmdline_parse_token_ipaddr_t cmd_{name}_{t_name}_tok =\n"
+ f"static cmdline_parse_token_ipaddr_t cmd_{name}_{t_name}_tok =\n"
f"\tTOKEN_IPV4_INITIALIZER(struct cmd_{name}_result, {t_name});"
)
elif t_type.startswith("(") and t_type.endswith(")"):
--
2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [EXT] [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP addresses
2023-12-05 11:31 [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP addresses Bruce Richardson
@ 2023-12-06 6:18 ` Sunil Kumar Kori
2023-12-12 10:25 ` David Marchand
1 sibling, 0 replies; 3+ messages in thread
From: Sunil Kumar Kori @ 2023-12-06 6:18 UTC (permalink / raw)
To: Bruce Richardson, dev; +Cc: stable
> -----Original Message-----
> From: Bruce Richardson <bruce.richardson@intel.com>
> Sent: Tuesday, December 5, 2023 5:01 PM
> To: dev@dpdk.org
> Cc: Bruce Richardson <bruce.richardson@intel.com>; stable@dpdk.org;
> Sunil Kumar Kori <skori@marvell.com>
> Subject: [EXT] [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP
> addresses
>
> External Email
>
> ----------------------------------------------------------------------
> The C code generated for the tokens for matching IP addresses in
> commandlines was missing the "static" prefix present in the output for the
> other data-types.
>
> Fixes: 37666691e9ed ("buildtools: add a tool to generate cmdline
> boilerplate")
> Cc: stable@dpdk.org
>
> Reported-by: Sunil Kumar Kori <skori@marvell.com>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> buildtools/dpdk-cmdline-gen.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/buildtools/dpdk-cmdline-gen.py b/buildtools/dpdk-cmdline-
> gen.py index 49b03bee4a..bf1253d949 100755
> --- a/buildtools/dpdk-cmdline-gen.py
> +++ b/buildtools/dpdk-cmdline-gen.py
> @@ -71,7 +71,7 @@ def process_command(lineno, tokens, comment):
> elif t_type in ["IP", "IP_ADDR", "IPADDR"]:
> result_struct.append(f"\tcmdline_ipaddr_t {t_name};")
> initializers.append(
> - f"cmdline_parse_token_ipaddr_t cmd_{name}_{t_name}_tok =\n"
> + f"static cmdline_parse_token_ipaddr_t
> cmd_{name}_{t_name}_tok =\n"
> f"\tTOKEN_IPV4_INITIALIZER(struct cmd_{name}_result,
> {t_name});"
> )
> elif t_type.startswith("(") and t_type.endswith(")"):
> --
Acked-by: Sunil Kumar Kori <skori@marvell.com>
> 2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP addresses
2023-12-05 11:31 [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP addresses Bruce Richardson
2023-12-06 6:18 ` [EXT] " Sunil Kumar Kori
@ 2023-12-12 10:25 ` David Marchand
1 sibling, 0 replies; 3+ messages in thread
From: David Marchand @ 2023-12-12 10:25 UTC (permalink / raw)
To: Bruce Richardson; +Cc: dev, stable, Sunil Kumar Kori
On Tue, Dec 5, 2023 at 12:31 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> The C code generated for the tokens for matching IP addresses in
> commandlines was missing the "static" prefix present in the output for
> the other data-types.
>
> Fixes: 37666691e9ed ("buildtools: add a tool to generate cmdline boilerplate")
> Cc: stable@dpdk.org
>
> Reported-by: Sunil Kumar Kori <skori@marvell.com>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Applied, thanks Bruce and Sunil.
--
David Marchand
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-12 10:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 11:31 [PATCH] buildtools/dpdk-cmdline-gen: fix code gen for IP addresses Bruce Richardson
2023-12-06 6:18 ` [EXT] " Sunil Kumar Kori
2023-12-12 10:25 ` David Marchand
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).