kvargs: new function to get from key and value
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 24 Sep 2021 12:09:37 +0000 (14:09 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Fri, 24 Sep 2021 12:59:39 +0000 (14:59 +0200)
commit18a101f31bb2fd5e831be010e6435a7c8ddc5e2f
treebf7e97a682d87762cf8601094e51e59a5bcd1d0d
parent6fbf2d654e8169ca0b2559426bed0337e4a12d0b
kvargs: new function to get from key and value

A quite common scenario with kvargs is to lookup for a <key>=<value> in
a kvlist. For instance, check if name=foo is present in
name=toto,name=foo,name=bar. This is currently done in drivers/bus with
rte_kvargs_process() + the rte_kvargs_strcmp() handler.

This approach is not straightforward, and can be replaced by this new
function.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
drivers/bus/auxiliary/auxiliary_params.c
drivers/bus/vdev/vdev_params.c
lib/kvargs/rte_kvargs.c
lib/kvargs/rte_kvargs.h
lib/kvargs/version.map