kvargs: support list value
authorThomas Monjalon <thomas@monjalon.net>
Mon, 22 Oct 2018 13:15:27 +0000 (15:15 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commitcc0579f2339a1100152fc1bdbed1b579e9618cb7
tree26ae1b891017621e19c5bab3eb172fcb495b0322
parent6bd7fbd03c6282689415ea3ff99622a631109984
kvargs: support list value

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.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_kvargs/rte_kvargs.c
test/test/test_kvargs.c