From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 37255A0471 for ; Thu, 20 Jun 2019 09:26:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EECE81D040; Thu, 20 Jun 2019 09:26:32 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 0207F1D040 for ; Thu, 20 Jun 2019 09:26:31 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5K7P5Vo021161; Thu, 20 Jun 2019 00:26:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=AtsTUQ/VfU3m17nsFqv73NoyW2IoWdk7SXMyUIZj75Q=; b=vXbRKmV8riNUqBlHd8Av5NREXz30K2+aPDZFlRl4b0ojEXe5LGeH3qLPj9ehceMU6N7A L49tHsCIEnUNt20Y59Dc47kkd4DePYaUCIKTkz3X3Bn6SX1zWx3keMSZnYHcenOTU8Mn urZvDrqgR5weikl8CronhfIni8nd4ef7d++sey709npPy/zrbchFV5ruTXabAQ+/bUVF g3S6fkSoOA3i8wR6sPPtoWdSTdnCw5AO75Rs4J8dMGw8hnPcOO/oSVC2XYL6BooxG/+T Ywp+kYP0mzDYZW9IyADkYGSa20WdVH6Kq2Hcq5top+dD6Vq+4MGxTM9uNT6OcD7T4e9y Eg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2t7sb7jsww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 20 Jun 2019 00:26:30 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 20 Jun 2019 00:26:29 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.59) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 20 Jun 2019 00:26:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AtsTUQ/VfU3m17nsFqv73NoyW2IoWdk7SXMyUIZj75Q=; b=qgPoKGvjSFQ5Z2AyzYmct4KDYH2sH4hHviVcm2fEQwZJ0dZ8oyIZJIL6jaRdOKu/k3v/lMmOq6wluM7JtLJ+EndYjsnKMv2dM2UHyyIpBR+MUj86NTULcQUySp6B0DvJbqI8BGNYCcPdtF5YKnrs+0lDll4eTgigVRpcGF8+84I= Received: from MN2PR18MB2877.namprd18.prod.outlook.com (20.179.20.218) by MN2PR18MB3168.namprd18.prod.outlook.com (10.255.236.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.10; Thu, 20 Jun 2019 07:26:24 +0000 Received: from MN2PR18MB2877.namprd18.prod.outlook.com ([fe80::3d9b:ed4b:b155:9bad]) by MN2PR18MB2877.namprd18.prod.outlook.com ([fe80::3d9b:ed4b:b155:9bad%3]) with mapi id 15.20.1987.014; Thu, 20 Jun 2019 07:26:24 +0000 From: Anoob Joseph To: Jerin Jacob Kollanukkaran , Nikhil Rao , Erik Gabriel Carrillo , Abhinandan Gujjar , Bruce Richardson , Pablo de Lara CC: Narayana Prasad Raju Athreya , "dev@dpdk.org" , Lukas Bartosik , "Pavan Nikhilesh Bhagavatula" , Hemant Agrawal , Nipun Gupta , Harry van Haaren , =?iso-8859-1?Q?Mattias_R=F6nnblom?= , Liang Ma Thread-Topic: [PATCH 18/39] eventdev: add framework for eventmode conf Thread-Index: AQHVGjKxsrxTsASxAkm0AVHwFpOILKaUs+uAgA+KbpA= Date: Thu, 20 Jun 2019 07:26:24 +0000 Message-ID: References: <1559583160-13944-1-git-send-email-anoobj@marvell.com> <1559583160-13944-19-git-send-email-anoobj@marvell.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 538c78eb-d941-47a9-e6c3-08d6f55099b6 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR18MB3168; x-ms-traffictypediagnostic: MN2PR18MB3168: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 0074BBE012 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(346002)(39840400004)(376002)(396003)(199004)(189003)(13464003)(186003)(53936002)(14454004)(6116002)(52536014)(99286004)(26005)(71200400001)(71190400001)(305945005)(55016002)(7736002)(9686003)(5660300002)(256004)(33656002)(7416002)(446003)(76116006)(3846002)(74316002)(8676002)(25786009)(486006)(81156014)(73956011)(53546011)(6246003)(81166006)(6506007)(8936002)(66066001)(476003)(54906003)(316002)(478600001)(11346002)(7696005)(6436002)(66946007)(102836004)(110136005)(4326008)(66476007)(64756008)(229853002)(66446008)(86362001)(66556008)(68736007)(55236004)(76176011)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB3168; H:MN2PR18MB2877.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: MIRn+fjsLWDK/cAPM3aCHCsqqB0ZRxQ9Wy1yqscjQW1ZUBIT4AKk8Bcda2XafDXKPWWiCzXY3+CJkuO+udSRbxUaZ8+xv7Ha8Ig599cdG5/xiGbH2ZWk9tadL7q0xmo5cchlRt4UZBBEqdVVYJB8xtHiymKVXMELngJUJwFtk11CnWtGllO8LohWznn0fKi9vnrQ8K7x022zJ9UhuH+FGJoe3Ap+YGQah9myy/CcgIBHJgDCi/V7Yv0M4KXL3rw1jzX68ysvKcLiduGtn3xncvXyhAun/rBfGHxjkBNWDpD2lWf8MBB1L21DxnWELVlcHKVUI4+WOovGHTGi4dlMKtNT0/MskA98wjLq7q69N8H9JH8skFAYGJjFNYoFJZcM9KKvcPEG90yyOh219iROxxWieWBzYEcB6sJLS4sxr7o= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 538c78eb-d941-47a9-e6c3-08d6f55099b6 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2019 07:26:24.2914 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: anoobj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3168 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-20_05:, , signatures=0 Subject: Re: [dpdk-dev] [PATCH 18/39] eventdev: add framework for eventmode conf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Jerin, Please see inline. Thanks, Anoob > -----Original Message----- > From: Jerin Jacob Kollanukkaran > Sent: Monday, June 10, 2019 3:36 PM > To: Anoob Joseph ; Nikhil Rao ; > Erik Gabriel Carrillo ; Abhinandan Gujjar > ; Bruce Richardson > ; Pablo de Lara > > Cc: Anoob Joseph ; Narayana Prasad Raju Athreya > ; dev@dpdk.org; Lukas Bartosik > ; Pavan Nikhilesh Bhagavatula > ; Hemant Agrawal ; > Nipun Gupta ; Harry van Haaren > ; Mattias R=F6nnblom > ; Liang Ma > Subject: RE: [PATCH 18/39] eventdev: add framework for eventmode conf >=20 > > -----Original Message----- > > From: Anoob Joseph > > Sent: Monday, June 3, 2019 11:02 PM > > To: Jerin Jacob Kollanukkaran ; Nikhil Rao > > ; Erik Gabriel Carrillo > > ; Abhinandan Gujjar > > ; Bruce Richardson > > ; Pablo de Lara > > > > Cc: Anoob Joseph ; Narayana Prasad Raju Athreya > > ; dev@dpdk.org; Lukas Bartosik > > ; Pavan Nikhilesh Bhagavatula > > ; Hemant Agrawal > ; > > Nipun Gupta ; Harry van Haaren > > ; Mattias R=F6nnblom > > ; Liang Ma > > 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 > > Signed-off-by: Lukasz Bartosik > > --- > > 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 =3D NULL; > > + struct eventmode_conf *em_conf =3D NULL; > > > > /* Allocate memory for conf */ > > conf =3D 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 =3D rte_zmalloc("eventmode-helper-mode- > > params", >=20 > Use hugepage alloc memory only fastpath. Malloc() would be fine here. >=20 [Anoob] Will fix this in v2.