> -----Original Message----- > From: Anoob Joseph <[email protected]> > Sent: Monday, June 3, 2019 11:02 PM > To: Jerin Jacob Kollanukkaran <[email protected]>; Nikhil Rao > <[email protected]>; Erik Gabriel Carrillo <[email protected]>; > Abhinandan Gujjar <[email protected]>; Bruce Richardson > <[email protected]>; Pablo de Lara > <[email protected]> > Cc: Anoob Joseph <[email protected]>; Narayana Prasad Raju Athreya > <[email protected]>; [email protected]; Lukas Bartosik > <[email protected]>; Pavan Nikhilesh Bhagavatula > <[email protected]>; Hemant Agrawal > <[email protected]>; Nipun Gupta <[email protected]>; Harry > van Haaren <[email protected]>; Mattias Rönnblom > <[email protected]>; Liang Ma <[email protected]> > Subject: [PATCH 18/39] eventdev: add framework for eventmode conf > > Adding eventmode conf which would have all required configuration for the > event mode. > > Signed-off-by: Anoob Joseph <[email protected]> > Signed-off-by: Lukasz Bartosik <[email protected]> > --- > lib/librte_eventdev/rte_eventmode_helper.c | 16 ++++++++++++++++ > lib/librte_eventdev/rte_eventmode_helper_internal.h | 5 +++++ > 2 files changed, 21 insertions(+) > > diff --git a/lib/librte_eventdev/rte_eventmode_helper.c > b/lib/librte_eventdev/rte_eventmode_helper.c > index dc2c934..38f1a2b 100644 > --- a/lib/librte_eventdev/rte_eventmode_helper.c > +++ b/lib/librte_eventdev/rte_eventmode_helper.c > @@ -97,6 +97,7 @@ rte_eventmode_helper_parse_args(int argc, char > **argv) { > int32_t opt, ret; > struct rte_eventmode_helper_conf *conf = NULL; > + struct eventmode_conf *em_conf = NULL; > > /* Allocate memory for conf */ > conf = rte_zmalloc("eventmode-helper-conf", > @@ -108,9 +109,21 @@ rte_eventmode_helper_parse_args(int argc, char > **argv) > goto err; > } > > + /* Allocate memory for event mode params */ > + conf->mode_params = rte_zmalloc("eventmode-helper-mode- > params",
Use hugepage alloc memory only fastpath. Malloc() would be fine here.

