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]
> -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
>
>
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
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
4 matches
Mail list logo