[dpdk-dev] [PATCH 18/39] eventdev: add framework for eventmode conf

Jerin Jacob Kollanukkaran jerinj at marvell.com
Mon Jun 10 12:06:23 CEST 2019


> -----Original Message-----
> From: Anoob Joseph <anoobj at marvell.com>
> Sent: Monday, June 3, 2019 11:02 PM
> To: Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Nikhil Rao
> <nikhil.rao at intel.com>; Erik Gabriel Carrillo <erik.g.carrillo at intel.com>;
> Abhinandan Gujjar <abhinandan.gujjar at intel.com>; Bruce Richardson
> <bruce.richardson at intel.com>; Pablo de Lara
> <pablo.de.lara.guarch at intel.com>
> Cc: Anoob Joseph <anoobj at marvell.com>; Narayana Prasad Raju Athreya
> <pathreya at marvell.com>; dev at dpdk.org; Lukas Bartosik
> <lbartosik at marvell.com>; Pavan Nikhilesh Bhagavatula
> <pbhagavatula at marvell.com>; Hemant Agrawal
> <hemant.agrawal at nxp.com>; Nipun Gupta <nipun.gupta at nxp.com>; Harry
> van Haaren <harry.van.haaren at intel.com>; Mattias Rönnblom
> <mattias.ronnblom at ericsson.com>; Liang Ma <liang.j.ma at intel.com>
> 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 <anoobj at marvell.com>
> Signed-off-by: Lukasz Bartosik <lbartosik at marvell.com>
> ---
>  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.




More information about the dev mailing list