[dpdk-dev] [PATCH v2] doc: announce kvargs API change

Thomas Monjalon thomas at monjalon.net
Sat Nov 24 18:12:51 CET 2018


23/11/2018 17:31, Jerin Jacob:
> From: Ferruh Yigit <ferruh.yigit at intel.com>
> > On 11/22/2018 1:22 PM, Olivier Matz wrote:
> > > On Thu, Nov 22, 2018 at 11:32:23AM +0100, Thomas Monjalon wrote:
> > >> After processing a kvlist in rte_kvargs_process(),
> > >> it may be needed to loop again over kvlist in order to know
> > >> whether the key is matched or not.
> > >> In order to simplify implementation of kvargs checks,
> > >> a new pointer parameter may be used to get the match count.
> > >>
> > >> The change of the function prototype would be as below:
> > >>
> > >>  int
> > >>  rte_kvargs_process(const struct rte_kvargs *kvlist,
> > >>              const char *key_match,
> > >> +            int *match_count,
> > >>              arg_handler_t handler,
> > >>              void *opaque_arg)
> > >>
> > >> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> > >
> > > Maybe "unsigned int" instead of "int".
> > >
> > > Apart from this,
> > > Acked-by: Olivier Matz <olivier.matz at 6wind.com>
> > >
> > 
> > Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>
> 
> Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>

Applied





More information about the dev mailing list