From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AFE3DA04F0; Mon, 13 Jan 2020 13:02:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 176131C1D8; Mon, 13 Jan 2020 13:02:34 +0100 (CET) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00060.outbound.protection.outlook.com [40.107.0.60]) by dpdk.org (Postfix) with ESMTP id 146DD1BEC4 for ; Mon, 13 Jan 2020 13:02:32 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mufnGqXQTjxzgXhqRP2vIL0uWCvdLGncbcSyFzyr/tnDZpeGBsKc4GOm3rTGXChOxYjgOeHQxNyVMSrM+UEZC7nB2MDj0ol47yHnKJr3yZYlkd54XTxJBhwYbXfeWtsFJpZEz7N80l7aPgTv9sBMk63nJf+kAWD0OREOntYY/7qhvcfU105aNGPZN756ahTFwtcws4k0j2oWMIJqCMEoatirnGW51Sm4Xas8lknqAGgddtbkDMsO9AgFGD+hUwYLIh3tNH+UinptSekM58hCZ/B4mznq/sSs+nwyAMJwaqdhahZa/IW10JlkMNGORtkDYkg9G5jvytE4NUJAcKuKiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w7+re8uE8K5H70hIPnM8oth4oRcnSDxdBlWJoaptVQQ=; b=LdU3xlK9ycolsqDG5DmTrRZLZ+KXnbhtJ2aW3dWOm6MpFC4HeVW13oVr1CKNMColS0Xe5MAo3XJwXD83m/vlsdPnKM96YpfSW2ug0adH9aiobNIDmZPSXQcM8f17GczgFhng49290UQmeCVjVHKYQVq7Pit5PgHEgxKh5EryTkWZUCA66vA8zJTCggSsILFQhCARrrGgBs8H4ic9Cmk71RXrNrV0z2TRweIPuxtpQWZoFdVfgbCuS2nkEoEwt+qxV88MJWPIQZimqxytmTOMmdk+TqIM6mcxAW2gn5qm5CJZ/f8n8M8wBSYhi4hriOQ1wAjM/fZS9gQ66QCTm+41Cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w7+re8uE8K5H70hIPnM8oth4oRcnSDxdBlWJoaptVQQ=; b=rUoN8Jr6xdjMIcPENm4iijE4T5U3TtlX3zX6c/Ir5gR5ZyqseaS137Cu6WNh5qS73jJk6NGcQmwaDe+ympWs9mTTYgTa7zFDvyC6s/rOVIrB6BwI9E5ayytvyD7C7dz/W2PB2eFwSdIMNxnU9ADlfO7dMnce6oP4637P5eMvaWw= Received: from VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.80) by VI1PR04MB2973.eurprd04.prod.outlook.com (10.170.232.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.13; Mon, 13 Jan 2020 12:02:30 +0000 Received: from VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::78e6:3d75:eab2:dac6]) by VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::78e6:3d75:eab2:dac6%4]) with mapi id 15.20.2623.014; Mon, 13 Jan 2020 12:02:30 +0000 From: Nipun Gupta To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" , "konstantin.ananyev@intel.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 00/11] example/l3fwd: introduce event device support Thread-Index: AQHVyIWyRQGG0ENffkSjMCHGzJM7IKfof+PA Date: Mon, 13 Jan 2020 12:02:30 +0000 Message-ID: References: <20191204144345.5736-1-pbhagavatula@marvell.com> <20200111134730.5329-1-pbhagavatula@marvell.com> In-Reply-To: <20200111134730.5329-1-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; x-originating-ip: [92.120.1.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0a06e055-4083-419b-db75-08d798207780 x-ms-traffictypediagnostic: VI1PR04MB2973: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 028166BF91 x-forefront-antispam-report: SFV:NSPM; SFS:(10001)(10009020)(4636009)(366004)(346002)(39860400002)(136003)(376002)(396003)(199004)(189003)(8936002)(81156014)(81166006)(45080400002)(316002)(966005)(478600001)(5660300002)(4326008)(52536014)(66476007)(66946007)(76116006)(66556008)(55016002)(9686003)(110136005)(64756008)(66446008)(86362001)(53546011)(44832011)(2906002)(186003)(71200400001)(26005)(33656002)(7696005)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB2973; H:VI1PR04MB4480.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DFp/Z4BxxqoCWA9Q1zwkc8rWjNopJPuRU1QMHU44g6BVRQF0q6u/0GpZtqepohsnk4GR4KxKFnhxWBwbVLpXhwVT4fxCNHHjJznvmEWJtEDJ0L2bikq58oSpwjNbN64Iam/5iovrB3vva4hv1X3EUi5038Qad+w+Mq5/Tx8YUkgnK+d4kxIiCaP3y4wAYBVdML5cB/54g/qb1XZeb1udHeV3fjDBG8bmai15lBnHVuclVJbB8iILV86pwgm3FU5JOWOY2j+uUpn1EtnKKl9Gyut4kc+SSUkEdz5GljPZjaLpsGz6qPGhBvkx9VJ8cEALIZRkr4gu8A/rKpTZoi7m1FL/S6XIEnAp4Qyf2A007wYLnc7pssJ12zlrz5pZ4mCwf5g5/B99SH2L1n+lM+EWoih6I3CpJDv5G+td+fJ84ABjvmSrymeVh/cH3DihkHUs5nYmG5bpWOXmrma1NHjleTwk7YCrOABKlt3ijTp87e41D6ryKQ+oahilG/MYzfctGG/7OCAAVaxbBkTP1OYKSyyX/Y9NIbeow/bs62TmsBijOt3W0P1/2jFgvLZOmiBPjJwe/o7OBKeHyl9tsWNMdiGh1Kv6Upcro8pD7Im623cREj+/FWO/p5BbU/xBniMo x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a06e055-4083-419b-db75-08d798207780 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2020 12:02:30.6004 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: owYD5zY9NEVmm5sEr0xBByKl7yMoEHveV9IfAuvgqTFAz7+1f0ZQ1Ng6CHA7dhbtbolegHfCQqNRhKtHvboPjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2973 Subject: Re: [dpdk-dev] [PATCH v3 00/11] example/l3fwd: introduce event device support 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" Series Acked-by: Nipun Gupta > -----Original Message----- > From: dev On Behalf Of > pbhagavatula@marvell.com > Sent: Saturday, January 11, 2020 7:17 PM > To: jerinj@marvell.com; konstantin.ananyev@intel.com > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3 00/11] example/l3fwd: introduce event > device support >=20 > From: Pavan Nikhilesh >=20 > From: Pavan Nikhilesh >=20 > This patchset adds support for event mode in l3fwd. > The poll mode is still the default mode of operation. >=20 > The following new command line parameters are added: > --mode: Dictates the mode of operation either poll or event. If unset th= en > by default poll mode is used. > --eventq_sched: Dictates event synchronization mode i.e. either ordered, > atomic or parallel. > --event-eth-rxqs: Number of ethernet RX queues per device. >=20 > Based on event device capability the configuration is done as follows: > - A single event device is enabled. > - The number of event ports is equal to the number of worker > cores enabled in the core mask. Additional event ports might > be configured based on Rx/Tx adapter capability. > - The number of event queues is equal to the number of ethernet > ports. If Tx adapter doesn't have internal port capability then > an additional single link event queue is used to enqueue events > to Tx adapter. > - Each event port is linked to all existing event queues. > - Dedicated Rx/Tx adapters for each Ethernet port. >=20 > v3 Changes: > ---------- > - Unify argument parsing. > - Segregate poll mode and event mode initialization. > - Simplify event resource creation and accesses. > - Integrate > https://eur01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch > es.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D8002&data=3D0 > 2%7C01%7Cnipun.gupta%40nxp.com%7Cab797315191e4c4a749c08d7969cd3f > 2%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63714347262920637 > 1&sdata=3D9Mp%2B8oSfYORFBTZKxPkZWnZ4RzcAHzAzsv8A0hELxa8%3D& > amp;reserved=3D0 series. > - Reduce code duplication in lpm. >=20 > v2 Changes: > ---------- > - Shorten the structure name `s/event_rsrc/evt_rsrc` `s/l2fwd_rsrc/rsrc`. > - Use rte_panic instead of rte_exit. > - Rebase on top of Tx adapter change > https://eur01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch > es.dpdk.org%2Fpatch%2F60971&data=3D02%7C01%7Cnipun.gupta%40nxp > .com%7Cab797315191e4c4a749c08d7969cd3f2%7C686ea1d3bc2b4c6fa92cd99 > c5c301635%7C0%7C0%7C637143472629206371&sdata=3DvGrBNBnOHkPvu > 6AcGUH7%2BBJinNoh6TtU6ZT80hXJR8I%3D&reserved=3D0. > - Add parallel mode support. > - Fix missing eventdev args parsing. >=20 > Pavan Nikhilesh (7): > examples/l3fwd: add event device configuration > examples/l3fwd: add event eth Rx/Tx adapter setup > examples/l3fwd: add service core setup based on caps > examples/l3fwd: add event lpm main loop > examples/l3fwd: add event em main loop > examples/l3fwd: add graceful teardown for eventdevice > doc: update l3fwd user guide to support eventdev >=20 > Sunil Kumar Kori (4): > examples/l3fwd: add framework for event device > examples/l3fwd: split pipelines based on capability > examples/l3fwd: add ethdev setup based on eventdev > examples/l3fwd: add event port and queue setup >=20 > doc/guides/sample_app_ug/l3_forward.rst | 76 ++++- > examples/l3fwd/Makefile | 3 +- > examples/l3fwd/l3fwd.h | 30 ++ > examples/l3fwd/l3fwd_em.c | 177 ++++++++++++ > examples/l3fwd/l3fwd_em.h | 159 ++++++++--- > examples/l3fwd/l3fwd_em_hlm.h | 131 +++++++++ > examples/l3fwd/l3fwd_em_sequential.h | 26 ++ > examples/l3fwd/l3fwd_event.c | 263 +++++++++++++++++ > examples/l3fwd/l3fwd_event.h | 86 ++++++ > examples/l3fwd/l3fwd_event_generic.c | 302 ++++++++++++++++++++ > examples/l3fwd/l3fwd_event_internal_port.c | 281 ++++++++++++++++++ > examples/l3fwd/l3fwd_lpm.c | 231 +++++++++++++++ > examples/l3fwd/main.c | 316 +++++++++++++++++---- > examples/l3fwd/meson.build | 5 +- > 14 files changed, 1971 insertions(+), 115 deletions(-) > create mode 100644 examples/l3fwd/l3fwd_event.c > create mode 100644 examples/l3fwd/l3fwd_event.h > create mode 100644 examples/l3fwd/l3fwd_event_generic.c > create mode 100644 examples/l3fwd/l3fwd_event_internal_port.c >=20 > -- > 2.17.1