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 D48B4A04F3; Fri, 3 Jan 2020 14:45:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4BDAD1D40F; Fri, 3 Jan 2020 14:45:30 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 5E4F41D409 for ; Fri, 3 Jan 2020 14:45:29 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jan 2020 05:45:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,390,1571727600"; d="scan'208";a="252594833" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 03 Jan 2020 05:45:28 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 3 Jan 2020 05:45:28 -0800 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 3 Jan 2020 05:45:28 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 3 Jan 2020 05:45:28 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YxZEgasX7RYkiAPKBg9a13B/fE9SUw+kLgWc+6XsZ6kGSwb7nl8cdSFi52DqQZTq2Nlp6egT6nFS+s+NckKxpX8Bxt3TBqorsdXZ8wPASVUsELV6n+Rorgw4r//F1s4OhhFG0kTcXn3MzkKVuiXmA3X/0p+1v85ihP5Bg7O8Ys3j1X7JA7jzRgaheaIyAd8h3j/ZBdB8nUC6bfx4wQCiI9ZfYfTcS5MeIhmpW66JiazljO3v83RUpXAS0yHUJ2VxOOJVS/M1bpMK8AUkGflWVHq81L6kkn1HqC+Pn6Clio0A1qiGPbqzwMPfw4peLKfei2ZzDRhqjZPPLUXkVXXbjA== 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=uF0rLL7qegOFoiPiqFXS8YApzTJVFxMx9G3Mw2cC6P4=; b=hV/x3ungRPDvUIHZZyspe5jGdSLz035ZNib/xRah8/XqMU7y7LALw22DJFYMlzDy3yiXhxSrBpftBWq/jF2+8X5u/1mQS27gryvmavrbFvOcGI4aceO7MbRx5e8dIkUaDPjqd9LNfSGWcIl6SYqnjV7QrNPYlv3csXfe6rE1nbPw+xIv0DFpg2Csl6Yytk4n5tk7yxIL4XYd6VyyhPHOMMCyZIhX3GSWHdCm+xWm4LMBxYtUskd/r50yAE55alrqfjfqdKeEGJAvwaGWmNNL0MaNwDRyu6M5EPmUedVHwQbGpd664zFcKO+VazkYnsZxEWm3S/trtICw0pGYlVvYcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uF0rLL7qegOFoiPiqFXS8YApzTJVFxMx9G3Mw2cC6P4=; b=VUOMTfhp2ZXssIVXg8rFAVXyFjR1rQTq6EB9sT2X7zX4OntecK1PcRaCkTKmLrvRtdIyaUrhk8Gn8sz4UT0y36x9j2rvWSTnYFcoW3ZltHXcMhTGlcS6pKVx3jc43pd90zHGkyPWOHuKRNxBfnGNqpn3PhePtQrt+TtbMhxjtjI= Received: from SN6PR11MB2558.namprd11.prod.outlook.com (52.135.94.19) by SN6PR11MB2669.namprd11.prod.outlook.com (52.135.90.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Fri, 3 Jan 2020 13:45:26 +0000 Received: from SN6PR11MB2558.namprd11.prod.outlook.com ([fe80::4d86:362a:13c3:8386]) by SN6PR11MB2558.namprd11.prod.outlook.com ([fe80::4d86:362a:13c3:8386%7]) with mapi id 15.20.2602.012; Fri, 3 Jan 2020 13:45:26 +0000 From: "Ananyev, Konstantin" To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" , "Kovacevic, Marko" , Ori Kam , "Richardson, Bruce" , "Nicolau, Radu" , Akhil Goyal , "Kantecki, Tomasz" , Sunil Kumar Kori CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 09/11] examples/l3fwd: add event em main loop Thread-Index: AQHVqrGdgzOavE2LNkiVT0t9tP81o6fZGxxA Date: Fri, 3 Jan 2020 13:45:25 +0000 Message-ID: References: <20191204144345.5736-1-pbhagavatula@marvell.com> <20191204144345.5736-10-pbhagavatula@marvell.com> In-Reply-To: <20191204144345.5736-10-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTA4YjBmMWMtMjgzMi00MDFlLWFlNDEtYTVmNGM3NWZlZjk5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiU25HOVgwTWJSY3FQSFNvZk9aU3FzTkp5dFpDRGl1alwvMm5BNVwvSXJGNDFiYmVUYmxpZ3pBWStaRXU1Sys0eExwIn0= dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-ctpclassification: CTP_NT authentication-results: spf=none (sender IP is ) smtp.mailfrom=konstantin.ananyev@intel.com; x-originating-ip: [192.198.151.189] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: db0141f6-f6d3-4939-c0c3-08d790533030 x-ms-traffictypediagnostic: SN6PR11MB2669: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0271483E06 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(346002)(396003)(366004)(376002)(136003)(189003)(199004)(7696005)(66946007)(66476007)(64756008)(66556008)(76116006)(66446008)(4326008)(110136005)(6506007)(2906002)(86362001)(33656002)(8676002)(81166006)(81156014)(8936002)(26005)(55016002)(316002)(71200400001)(186003)(478600001)(9686003)(5660300002)(52536014)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR11MB2669; H:SN6PR11MB2558.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YyNxjvx9HvbLLI/Cen5WHFaRE5KYLpzhe37AboON/SZZRafc47p/05k//6BFtKmI77V67g2mfEcLwWn1vt8JbCt+Y5fhv6WWkaQ+N7zSXw2Yal1ZcxbKOKTwZNJfhKUChEkZXB7AzFDdIuqVAe1m6863ZoduscTUtzOIv9XqyjcmplcwRusANVcX+FRFEI0JrJwpxhXl8+xKZZUtg33lKmwuXY1XJ88lIpu03YQFV2b/+vXKpwU3miy6oOTRBqw9BxDyFbMH8K6SnPO/wQPluFxeV1WjjYxdNAgl5dxn9UzRFXVRdb7ProBrAiYyUx3IkDorVfMqIzZf2oT35qwCzCLdQ0dLWqJpKGbeNfgc1n9TqxVGfvygzBUhVN5xIt4mPjNK+KjHzXtO/1KmxEGpR3QkOUPRiSrQKCFTs/AKSmIUH9w4Av+lGkXsgTnkWc28HjOnWvS2AvEM5NF94jKcJ/BJF/ROqsh+omx7/65Nm0oFtd/MXVXuUxuASCZSyjdF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: db0141f6-f6d3-4939-c0c3-08d790533030 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2020 13:45:26.0351 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /IrZ8UFgl81V/OHbUf+0s2G6Srk7XOUVVTygbZ07kgukznei5/xhQNmnhlOuBsEnUTOZQOf5ZeXbic6Rk5Nt0+fxSyLaYuQw3h8ymPyiUlI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2669 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 09/11] examples/l3fwd: add event em 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" > Add em main loop for handling events based on capabilities of the > event device. >=20 > Signed-off-by: Pavan Nikhilesh > --- > examples/l3fwd/l3fwd.h | 10 ++ > 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 | 9 ++ > examples/l3fwd/main.c | 5 +- > 7 files changed, 470 insertions(+), 47 deletions(-) >=20 > diff --git a/examples/l3fwd/l3fwd.h b/examples/l3fwd/l3fwd.h > index 8f2e4be23..2d02fa731 100644 > --- a/examples/l3fwd/l3fwd.h > +++ b/examples/l3fwd/l3fwd.h > @@ -221,6 +221,16 @@ lpm_event_main_loop_tx_q(__attribute__((unused)) voi= d *dummy); > int > lpm_event_main_loop_tx_q_burst(__attribute__((unused)) void *dummy); >=20 > +int > +em_event_main_loop_tx_d(__attribute__((unused)) void *dummy); > +int > +em_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy); > +int > +em_event_main_loop_tx_q(__attribute__((unused)) void *dummy); > +int > +em_event_main_loop_tx_q_burst(__attribute__((unused)) void *dummy); Same question as for lpm: if your functions don't need params, why not to define them as ones without params?=20 > + > + > /* Return ipv4/ipv6 fwd lookup struct for LPM or EM. */ > void * > em_get_ipv4_l3fwd_lookup_struct(const int socketid);