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 C4463A00E6 for ; Mon, 10 Jun 2019 12:23:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B1B181BFC7; Mon, 10 Jun 2019 12:23:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id CC6A41BFC5 for ; Mon, 10 Jun 2019 12:23:49 +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 x5AAFRGR011333; Mon, 10 Jun 2019 03:23:49 -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=EtYa4uStQzXXa4Pt8zLyPn8N5CsHAZ1UwyXdq4tHO8I=; b=boCdCoAZzayF2r5cGOq9b29yMvjcuuq22KYBqrzdzVHiJfGy9Ti+6w8HGzbRW8JiNhOT zhYEyaR/sX4tbpPRcCbPrGzS43/kh1G/Lt3FU39ontL40VLsk7/L1IhfoT8rLlnxm7Dd HPY4sopzoyUG2+ZzFgqNjLayspSL8PuQU8u12OrOnnAQbXcElq9CpkoiqMTAFsk/yq0w zDmtWl+kJT1zWfgkS9fvpSkn2AJ98g5ZhhzSuJlWOKdNXO6Kp3TNpVcE9aIlT3pGXA68 6cO2wgfsoU438EMKbUoJnIL823yxYsLLfaOOuo/3flZsdFURrkabUqWONuUHW2XVf700 aw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2t0chjwxd8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 10 Jun 2019 03:23:49 -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; Mon, 10 Jun 2019 03:23:47 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (104.47.37.58) 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:23:47 -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=EtYa4uStQzXXa4Pt8zLyPn8N5CsHAZ1UwyXdq4tHO8I=; b=hw1V4H0EwzM/0G44hE39Yn1cplH5E+UhyXj9/dY7McDJh5hY/WYgNbN7a+jhpl+flIRhsfsubnoeyTFTyHEofE9kqEFVYOd1HqsQnjvopaE2xufV8tNk4PgwPneLpyvMT6N693uVV1yha6JwOaJad7z1NKGxQ11nvTvYbhllf+4= 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:23:45 +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:23:45 +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 19/39] eventdev: add common initialize routine for eventmode devs Thread-Index: AQHVGjLLJXEEYS2H50WY4+sJMEemzqaUt7ow Date: Mon, 10 Jun 2019 10:23:45 +0000 Message-ID: References: <1559583160-13944-1-git-send-email-anoobj@marvell.com> <1559583160-13944-20-git-send-email-anoobj@marvell.com> In-Reply-To: <1559583160-13944-20-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: 9e2d029f-a170-4251-94bb-08d6ed8db84f 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:6790; 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)(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: DJHW3zRi0Mv6V2Ksws1KoO0jCVLKtmusTrKSaNNVXWamHDPoivI491qLGf7AQUJTednrE/npDYbrkHUFjDPb0NH4DBst9QQakDLXYikuCjPJLnXS2/hkhXBjUpA74R3tF6dkXsWLgZuH8XeRu7HFBObUr3I+MtCrY2Tupza+5n/bnXSxtqWfQBmKb2+AQ3PGELmPy9A7JZENe3y9yIw45vb6PnnUtSKNE9AjMYu3Q9yhwemvwcKOx4ipA8Id0BlRgz+RdlkF6HFnM5HWW/wa0uSxB7jDPwaXMJaXE4URLDD6l3K72LXGdDz10StFSY1oqPifkh0XOGkvyjuRAVuzG5N3jY7htTi9NCNH79yb0dTXpwlXrmnGmbvfaNJEL6ZpJr4ibtAdytZ8NH8uLyiQuobCivBOZFPx4yOLLarcTWk= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 9e2d029f-a170-4251-94bb-08d6ed8db84f X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2019 10:23:45.6499 (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 19/39] eventdev: add common initialize routine for eventmode devs 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 19/39] eventdev: add common initialize routine for > eventmode devs >=20 > Adding framework for common initialization routine for event mode. > Event mode would involve initialization of multiple devices, like eventde= v, > ethdev etc and this routine would be the placeholder for all initializati= on to > come in. >=20 > Signed-off-by: Anoob Joseph > Signed-off-by: Lukasz Bartosik > --- >=20 > +/* Helper functions for initialization, & launching workers */ > + > +/** > + * Initialize event mode devices > + * > + * Application could call this function to get the event device, eth > +device > + * and eth rx adapter initialized according to the conf populated using > +the > + * command line args. > + * > + * Application is expected to initialize the eth device and then the > +eventmode > + * helper subsystem will stop & start eth device according to it's > requirement. > + * So call to this function should be done after the eth device is > +successfully > + * initialized. > + * > + * @param mode_conf > + * Configuration of the mode in which app is doing packet handling > + * @return > + * - 0 on success. > + * - (<0) on failure. > + */ > +int32_t __rte_experimental > +rte_eventmode_helper_initialize_devs( > + struct rte_eventmode_helper_conf *mode_conf); > + # Prefer to change to rte_event_helper_init() and=20 introduce the counter part for the same(rte_event_helper_uninit() or rte_ev= ent_helper_fini()) # introduce params structure taking another paraments input instead of new = APIs. # let library return rte_event_helper_conf* object for further operations. > #ifdef __cplusplus > } > #endif > -- > 2.7.4