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 36DA0A00E6 for ; Mon, 10 Jun 2019 12:06:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B643C1BFC9; Mon, 10 Jun 2019 12:06:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 30F151BFC7 for ; Mon, 10 Jun 2019 12:06:29 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5AA2LUx032688; Mon, 10 Jun 2019 03:06:27 -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=P/twKZSK7IZy2qeNk5mI8nycClFrwgqQ1v6oQha1du4=; b=m9cQATQum1OW8+lmzijPpV5+buuLtvm8MTZs/enlq63+JicX2HfZSlRaPWm0Yb4GQLO1 MBgQJLnz4HTpE5++uqFUQzYpoabgKwdpAXc3gtFNnzwAbsx5yYDqKGgLMRGq0ZVRFmR1 6MsY3drt+j4SJvNuYetEqBwrfZKL/LqdEtvGHwQW0eDUgN7lMCEVlYMFdVOhCLxH4pAk OWYnfO/oPWRr42mfpyESVKVqT/Ejwyx0SabuFObe2Vo+2D+8lPZh0CGeojikyKEV0qUl OlWNBJqdNJDkfgYYPKJGFJN2Groti/Q6RUtvvbiVUoUugNDjIGR4CCS5XGJEYaSmR+JG Lw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2t0chjwvcw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 10 Jun 2019 03:06:27 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 10 Jun 2019 03:06:26 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (104.47.41.54) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 10 Jun 2019 03:06:26 -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=P/twKZSK7IZy2qeNk5mI8nycClFrwgqQ1v6oQha1du4=; b=bLWNPY2zycfkWGAigGpxxU59FowbaMVguDcS5v4PdqmfMLffn9v5qBvov2oSTaW18MYQP1/9BqcrJg3YTaBq1Xs17GMs7twoeV05LIW4DMW6Z8ec4nDJOcj5eOaC6BJFJxyMNJVPIYrMMeJf/eyEcnjfnaciz4N6wDb/iwkqP7U= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2871.namprd18.prod.outlook.com (20.179.58.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.14; Mon, 10 Jun 2019 10:06:23 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1ce4:557d:eeb8:843c]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1ce4:557d:eeb8:843c%7]) with mapi id 15.20.1965.017; Mon, 10 Jun 2019 10:06:23 +0000 From: Jerin Jacob Kollanukkaran 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 , =?iso-8859-1?Q?Mattias_R=F6nnblom?= , Liang Ma Thread-Topic: [PATCH 18/39] eventdev: add framework for eventmode conf Thread-Index: AQHVGjKx0ObHHSNRDE+8C+a4gfPtgqaUs4fA Date: Mon, 10 Jun 2019 10:06:23 +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: <1559583160-13944-19-git-send-email-anoobj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 23f83df0-a02c-4110-b324-08d6ed8b4b1f 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:BYAPR18MB2871; x-ms-traffictypediagnostic: BYAPR18MB2871: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-forefront-prvs: 0064B3273C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(136003)(39850400004)(396003)(189003)(199004)(13464003)(2906002)(76176011)(99286004)(6246003)(6116002)(3846002)(33656002)(7696005)(26005)(4326008)(55236004)(446003)(53546011)(486006)(25786009)(6506007)(186003)(102836004)(476003)(11346002)(74316002)(229853002)(66066001)(256004)(71190400001)(71200400001)(52536014)(316002)(54906003)(8676002)(81156014)(53936002)(81166006)(110136005)(7736002)(305945005)(55016002)(5660300002)(66946007)(9686003)(6436002)(68736007)(7416002)(478600001)(8936002)(66476007)(66556008)(64756008)(66446008)(73956011)(76116006)(14454004)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2871; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: xRwXfOFExZLomeaxl9BsU/dY0HNu+9KgHOJs3gBGdKsGUcGDygtWqtI4MhktgZwiSkubMc5NtKcaB+UL08Hy3nBEIg/F3HBvz//svXS144Q1wEsEH3hT4XXJ6AqvF+x/MDscrtQIRyhZaguCuyDTXweydldKROo+lNmu+6QBk08Js4r8avgDT9kghPXp5RysZQw4bd2hVd177GGGAidYVX8adAqf7eWShqL3W7JGMrwfCTuSEBWtZZYKn4Bhc8hwCsvdpV76exKZo/21FhREzG7OHZnM7AxGn94fH2iT4Libqt1z+lRSEE8tet+n1pPVYIBMH/4+XtXBmhUCGNBn3Gn1E61k4sM9jnxnJzncRrbw7NuvWjg4f7wziMGKDYENG5Xf2gk6HGjV8cAKo4QxiY+jGHO10rmvrZtU3ibyR/0= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 23f83df0-a02c-4110-b324-08d6ed8b4b1f X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2019 10:06:23.4330 (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: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2871 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-10_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" > -----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 >=20 > Adding eventmode conf which would have all required configuration for the > event mode. >=20 > 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(+) >=20 > 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; >=20 > /* 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; > } >=20 > + /* Allocate memory for event mode params */ > + conf->mode_params =3D rte_zmalloc("eventmode-helper-mode- > params", Use hugepage alloc memory only fastpath. Malloc() would be fine here.