From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E657C282DD for ; Mon, 10 Jun 2019 10:25:11 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id C3517206BA for ; Mon, 10 Jun 2019 10:25:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="oRaKhiBu"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=marvell.onmicrosoft.com header.i=@marvell.onmicrosoft.com header.b="gRnOWVLZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3517206BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D69CD1BFE3; Mon, 10 Jun 2019 12:25:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 3C82B1BFC7 for ; Mon, 10 Jun 2019 12:25:08 +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 x5AAFRGb011333; Mon, 10 Jun 2019 03:25:07 -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=qwG+OhWouSkuFq44tPtOWUvTg75ZhC3FF3/o1ioSHTU=; b=oRaKhiBuDB+jklprVtgOii78iMo2nfxTZIenEbBTSr2nEmK9NlV/oRAwb3rukivuMeva 7c1O0xDc+oENdqyavnPMT3DXJRqtMwpRozmFljaPVbHrQzRzenQ8q3iC7FFttLJgvBNe MQdiPLQhA+1CDmEcj35etuTpqHWnJYZhoSw9y1XJ8ZesKCdUBeDFZ3YN5TFeUNnYR3d6 d6DRO0pWOGIvthyf0ktptNtfrKmoj+jyhglI117QGXSuH2S+9pG6wLBCGSEgO4saQJD0 bHX4bSlYtEhhNnfFxl3z1KZyYqlg377WNDK99yUdl0N9fAybBMa6ikTpKVcKu77LHsKQ vg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2t0chjwxnj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 10 Jun 2019 03:25:07 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 10 Jun 2019 03:25:05 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.55) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 10 Jun 2019 03:25:05 -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=qwG+OhWouSkuFq44tPtOWUvTg75ZhC3FF3/o1ioSHTU=; b=gRnOWVLZRw+erPfkDrVvz1AzyYxdPAggdnsy8L1e3SYRPLEspYdne8Up3HBOZb18tiDYWPanStzoeyt/SwZ2GF9+VMI1tEfihH1xPK0kW4x+yDQD7ZGZ46F4coySjBmYetFfGhHcpUqXBFgBfnVmvEx5SsRcDqdJmhe25HflKoo= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2632.namprd18.prod.outlook.com (20.179.94.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.17; Mon, 10 Jun 2019 10:25:03 +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:25:03 +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 25/39] eventdev: add routine to validate conf Thread-Index: AQHVGjLZPfyD3L71TEa34KxgHFM2UKaUuPfA Date: Mon, 10 Jun 2019 10:25:02 +0000 Message-ID: References: <1559583160-13944-1-git-send-email-anoobj@marvell.com> <1559583160-13944-26-git-send-email-anoobj@marvell.com> In-Reply-To: <1559583160-13944-26-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: 15967516-4def-4685-6b04-08d6ed8de66f 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:BYAPR18MB2632; x-ms-traffictypediagnostic: BYAPR18MB2632: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0064B3273C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(366004)(396003)(39850400004)(376002)(13464003)(189003)(199004)(6436002)(52536014)(5660300002)(68736007)(25786009)(66574012)(229853002)(53936002)(55016002)(9686003)(3846002)(4326008)(7416002)(76116006)(14454004)(478600001)(66946007)(66476007)(66556008)(74316002)(6116002)(8676002)(81156014)(26005)(73956011)(81166006)(64756008)(66446008)(8936002)(99286004)(54906003)(110136005)(2906002)(305945005)(7696005)(71190400001)(186003)(102836004)(486006)(7736002)(76176011)(71200400001)(66066001)(86362001)(11346002)(6506007)(53546011)(55236004)(316002)(6246003)(15650500001)(476003)(33656002)(446003)(256004)(14444005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2632; 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: 9YNYNtyU6kfAhO+xdTABrWC4gk3RjSeC/MeGyDBroEUataE8Wvi+bN8Jo1t0fwjpNBDzD4gpqWQbLK3qq4b/lGj6iyx326ksrWbr2oNb7vISBfHMAOBl0zmDB7oZKB0Se6TuhuGDYcvBb6uo0EJq/n7QlGSuZMCT0JC1eP8jFhT9wOJdDOsJa9UJ6DlAyC1ffliE9aeNV5O9d77wFbTHz5gTRpzWNXNURHIi9/s4VHYjn4i1+09mHT8OTiAiJhoNK1FaWsEQ529eALXcA8nz/zZxN/smoqLa7ng6wNX42VLQIxT4WEE1p9DNMSQgae/sGv2F0WtaFS+mr4TvdKcHb2ZG3eAjg74fCVqhsI736faDY2MsINPsbnx/qCOR4riGYi+igI9d5Uc51430YJ6nMgFXo1fjlReObs8UFh3ehWM= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 15967516-4def-4685-6b04-08d6ed8de66f X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2019 10:25:03.0177 (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: BYAPR18MB2632 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 25/39] eventdev: add routine to validate 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 25/39] eventdev: add routine to validate conf >=20 > Adding routine to validate event mode conf. This function will verify the= conf > requested by the user and would populate other fields with default values= . > Presently, the function acts as placeholder for the above mentioned actio= ns. >=20 > Signed-off-by: Anoob Joseph > Signed-off-by: Lukasz Bartosik > --- > lib/librte_eventdev/rte_eventmode_helper.c | 33 > ++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) >=20 > diff --git a/lib/librte_eventdev/rte_eventmode_helper.c > b/lib/librte_eventdev/rte_eventmode_helper.c > index a57f837..4dbb94a 100644 > --- a/lib/librte_eventdev/rte_eventmode_helper.c > +++ b/lib/librte_eventdev/rte_eventmode_helper.c > @@ -165,6 +165,32 @@ rte_eventmode_helper_parse_args(int argc, char > **argv) > return NULL; > } >=20 > +/* Pre-process conf before using for init*/ > + > +static int > +rte_eventmode_validate_user_params(struct eventmode_conf > *em_conf) { No need to start with rte_eventmode_... for internal functions