Re: [dpdk-dev] [PATCH v4 3/5] kvargs: add get by key function

2021-04-12 Thread Thomas Monjalon
12/04/2021 14:07, Xueming(Steven) Li: > From: Olivier Matz > > > + if (!kvlist) > > > + return NULL; > > > + for (i = 0; i < kvlist->count; ++i) { > > > + /* Allows key to be NULL. */ > > > + if (!key && !kvlist->pairs[i].key) > > > + return kvlist->pairs[i]

Re: [dpdk-dev] [PATCH v4 3/5] kvargs: add get by key function

2021-04-12 Thread Xueming(Steven) Li
> -Original Message- > From: Olivier Matz > Sent: Monday, April 12, 2021 2:53 PM > To: Xueming(Steven) Li > Cc: NBU-Contact-Thomas Monjalon ; Gaetan Rivet > ; dev@dpdk.org; Asaf Penso > ; Ray Kinsella ; Neil Horman > > Subject: Re: [PATCH v4 3/5] kvargs: add get by key function > >

Re: [dpdk-dev] [PATCH v4 3/5] kvargs: add get by key function

2021-04-11 Thread Olivier Matz
Hi Xueming, On Sat, Apr 10, 2021 at 02:23:55PM +, Xueming Li wrote: > Adds a new function to get value of a specific key from kvargs list. > > Signed-off-by: Xueming Li > Reviewed-by: Gaetan Rivet > --- > lib/librte_kvargs/rte_kvargs.c | 20 > lib/librte_kvargs/rte_kva

[dpdk-dev] [PATCH v4 3/5] kvargs: add get by key function

2021-04-10 Thread Xueming Li
Adds a new function to get value of a specific key from kvargs list. Signed-off-by: Xueming Li Reviewed-by: Gaetan Rivet --- lib/librte_kvargs/rte_kvargs.c | 20 lib/librte_kvargs/rte_kvargs.h | 21 + lib/librte_kvargs/version.map | 3 +++ 3 files chan