[dpdk-dev] [PATCH 1/4] kvargs: support list value
Gaëtan Rivet
gaetan.rivet at 6wind.com
Tue Oct 9 16:14:06 CEST 2018
Hi Thomas,
On Tue, Oct 09, 2018 at 04:18:55AM +0200, Thomas Monjalon wrote:
> If a value contains a comma, rte_kvargs_tokenize() will split here.
> In order to support list syntax [a,b] as value, an extra parsing of
> the square brackets is added.
>
Nice, I was actually planning to do this.
I think it could be useful to also support () and {}, as well as
recursive lists, but it is best to have a first version to support
representor and go from this.
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---
> lib/librte_kvargs/rte_kvargs.c | 10 ++++++++++
> test/test/test_kvargs.c | 17 +++++++++++++++++
> 2 files changed, 27 insertions(+)
>
--
Gaëtan Rivet
6WIND
More information about the dev
mailing list