[dpdk-dev] [PATCH v2 04/18] eal: add lightweight kvarg parsing utility

Wiles, Keith keith.wiles at intel.com
Wed Mar 21 18:32:24 CET 2018



> On Mar 21, 2018, at 12:15 PM, Gaetan Rivet <gaetan.rivet at 6wind.com> wrote:
> 
> This library offers a quick way to parse parameters passed with a
> key=value syntax.
> 
> A single function is needed and finds the relevant element within the
> text. No dynamic allocation is performed. It is possible to chain the
> parsing of each pairs for quickly scanning a list.
> 
> This utility is private to the EAL and should allow avoiding having to
> move around the more complete librte_kvargs.

What is the big advantage with this code and the librte_kvargs code. Is it just no allocation, rte_kvargs needs to be build before parts of EAL or what?

My concern is we have now two flavors one in EAL and one in librte_kvargs, would it not be more reasonable to improve rte_kvargs to remove your objections? I am all for fast, better, stronger code :-)

> 
> Signed-off-by: Gaetan Rivet <gaetan.rivet at 6wind.com>

Regards,
Keith



More information about the dev mailing list