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 C72C3A0613 for ; Fri, 27 Sep 2019 15:28:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B329F1BEA3; Fri, 27 Sep 2019 15:28:58 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130070.outbound.protection.outlook.com [40.107.13.70]) by dpdk.org (Postfix) with ESMTP id 859331BE9C for ; Fri, 27 Sep 2019 15:28:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b06hlDzGnKWi5C4uzHe7xCMETI6srKmuO72YqnMlOq0Ju/Baz2VlhChaclGRAlmLueZB/T52uIdq5mtcPmlqBj0r+5TFqd6m1A5LtHnFvPWxzyk9FDQRH+HLgG89qBgY0HXhdwautbix7DWUzWYMxWmcDlNVMJN4YQ2rGwxcpUwX00ehT96jnpsVf69NWPDgV8783ckaHMttMj3aSxl0rrqq17T2/w7ZFcLUguyHgvCJxSbT9u7KrHxyUiOjobmIZhYsEqqtVTHQgBNbbYnU9FfMCvcnxaMNBQYlp32H/y7/Ut53c+SgQ4edYsHiNlI4QVNeEG4s8l+njQdgfdDpGA== 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=mpaCvErdNQrGmE1CsnSezPzkGnG57o8ClF1dx/j+TbQ=; b=hV1lz7NPnbP4gqwBkFvRDxmnHU1wXs8J7S2DNJY4UObnB/+tQx/gZZ1KadVjMpASxW8seJc79klOsGbw13jBUmcjom4dz9knjMf3+wEvfXGnfMERl9J1VV4Px1BSzUx5VzbMnccOJiyODQ3J1mXFlkslOjY6Jd2qJiFQMfX2aN/SwmAadtVbX9g+TWYKhOkpy2S7kJ6hxpC2fEHqhTGz7kRFGZZRlfVJW0AGD42K0Y/5N5vT6rwtAEz43/BEtM8YnSgzSg339YU6MFWiGywH6bTxUHD5OvJuv0c5JR8uVeiNSh8r/EAB34d+J/QKwpN4K7qtP7vXGVjn4QZXcQ1R1A== 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=mpaCvErdNQrGmE1CsnSezPzkGnG57o8ClF1dx/j+TbQ=; b=XnvDk5ZvrDSvCvoi8nRgWG7JMnn8iawymYyg6qRVig3lGreR/vupXYjYiHS00VlJPf88Fs/VhAL9A5EfT5w3coE8UpfCW+8tlKDbJXOt761yU/XwjMKBnOH3sPs6G6e2b3Zs5XUNNhiUHDM5X6UykbFEeRkLxMVgLH5s1Dwbnsk= Received: from VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.224) by VI1PR04MB5759.eurprd04.prod.outlook.com (20.178.127.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.17; Fri, 27 Sep 2019 13:28:55 +0000 Received: from VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::74ce:408a:d65a:3f4a]) by VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::74ce:408a:d65a:3f4a%4]) with mapi id 15.20.2284.028; Fri, 27 Sep 2019 13:28:55 +0000 From: Nipun Gupta To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" , "bruce.richardson@intel.com" , Akhil Goyal , Marko Kovacevic , Ori Kam , Radu Nicolau , Tomasz Kantecki , Sunil Kumar Kori CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 08/10] examples/l2fwd-event: add eventdev main loop Thread-Index: AQHVcryIrfqVD8drGkK/swDhHqkjdac/iKlQ Date: Fri, 27 Sep 2019 13:28:54 +0000 Message-ID: References: <20190919101346.8832-1-pbhagavatula@marvell.com> <20190924094209.3827-1-pbhagavatula@marvell.com> <20190924094209.3827-9-pbhagavatula@marvell.com> In-Reply-To: <20190924094209.3827-9-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-correlation-id: 5e0dee4f-6445-4381-500f-08d7434ea518 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VI1PR04MB5759:|VI1PR04MB5759: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 0173C6D4D5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(376002)(136003)(366004)(39860400002)(13464003)(189003)(199004)(66946007)(102836004)(81166006)(25786009)(3846002)(2501003)(186003)(2906002)(8936002)(74316002)(7736002)(7696005)(76176011)(6116002)(66066001)(86362001)(33656002)(55016002)(305945005)(81156014)(5660300002)(6506007)(4326008)(53546011)(316002)(14454004)(6436002)(71200400001)(71190400001)(9686003)(478600001)(256004)(2201001)(76116006)(446003)(66556008)(64756008)(11346002)(99286004)(476003)(66446008)(52536014)(66476007)(486006)(110136005)(229853002)(44832011)(26005)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB5759; H:VI1PR04MB4480.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: fKeSIUS+xl9HTmQSrhabiCplXKWmdXGmUraxITqqgm1mlvdABD08gxOeXV9/BGlvtGvjccCbvsBpbZrjeEe+1Rtzdtd+1TW7ItgGOuMmlPNEmeXWXfiCOr9GkkmMP0HtDvLyOLkYBlWdtdh4K5Ce5nWTfBSLL9kUqQZOP3X5X4ojaEJ9ui+VfPlj1tqEyWtgwlyZxk3RM+d1ejGkr4YHZL998Gz8qc+7+UWErmAtuBrn/Yh2TI5RZuN/x8E1qZlKdnhD76neSbUtxoUCp7LT+t2/EymOP1NYhRvGoTnZ43CV7K4bGTNNl1qeHpvpmiN5s8HNaiBiTnZYFx204fAVOU++F35pfncDong3PUOzc8NKbL1YFKDusc1DS1sAw/vikgA+MNZKTSjvRP34j82BEZOmUuv98+2yDPdrCgz9Jmg= 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: 5e0dee4f-6445-4381-500f-08d7434ea518 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2019 13:28:55.1689 (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: bKGNaG2nQrHRaIqzootW1hzO7wH/zucA5eHHRcNGgUFskKzhXMsUPZb0rTY7rmIgiVSO7e4Nz9HANnBeIb/MWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5759 Subject: Re: [dpdk-dev] [PATCH v4 08/10] examples/l2fwd-event: add eventdev main loop 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: dev On Behalf Of > pbhagavatula@marvell.com > Sent: Tuesday, September 24, 2019 3:12 PM > To: jerinj@marvell.com; bruce.richardson@intel.com; Akhil Goyal > ; Marko Kovacevic ; > Ori Kam ; Radu Nicolau ; > Tomasz Kantecki ; Sunil Kumar Kori > ; Pavan Nikhilesh > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v4 08/10] examples/l2fwd-event: add eventdev > main loop >=20 > From: Pavan Nikhilesh >=20 > Add event dev main loop based on enabled l2fwd options and eventdev > capabilities. >=20 > Signed-off-by: Pavan Nikhilesh > --- > + if (flags & L2FWD_EVENT_TX_DIRECT) { > + rte_event_eth_tx_adapter_txq_set(mbuf, 0); > + while > (!rte_event_eth_tx_adapter_enqueue(event_d_id, > + port_id, > + &ev, 1) && > + !*done) > + ; > + } In the TX direct mode we can send packets directly to the ethernet device u= sing ethdev API's. This will save unnecessary indirections and event unfolds within the= driver. > + > + if (timer_period > 0) > + __atomic_fetch_add(&eventdev_rsrc->stats[mbuf- > >port].tx, > + 1, __ATOMIC_RELAXED); > + } > +}