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 D0705A04F1; Mon, 6 Jan 2020 13:27:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EFA7D1D651; Mon, 6 Jan 2020 13:27:10 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id B67111D647 for ; Mon, 6 Jan 2020 13:27:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jan 2020 04:27:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,402,1571727600"; d="scan'208";a="217397380" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga008.fm.intel.com with ESMTP; 06 Jan 2020 04:27:07 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jan 2020 04:27:07 -0800 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jan 2020 04:27:07 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jan 2020 04:27:07 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjOEUGiQh+LtttQ0R7x4rifN5h9Tf4DiLypRHGAAAGdYq8awx2UXTPsZoBYEoshSchklnHN+yAjRyq3pL3Bht2+JRPAMnqWxmJEOPJUfvZYBXYVa3nHNFUdZpLwTBuZhN/0/kUHU1xjRHuccGs0Ov0b7RtmEnfvMIFmgeGhJjrGGddqlVGd2TyhbiY5R9DdX6SuVKDrIRH2J5MACiKkHgKXwB8BYZmvYcbguvc64hjlnYISxgZ9i4y5By8bPl3mFtYqeUFRIfXLOMKKzVXIhFbsoYI9Q0W90F/ydZtJH2jC+pZ81Oh6Rm4TJm02AXehXqoFxwSm8r+HoQUG4O6cmmg== 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=TWVjG1oP/UJm5gbDzSeQg2HzjnhnbJiFiYizx8ZIuV4=; b=EwMi4T/T9yk7MSJkMLh/CiigLpDgvq1I8NL/CVLx3YyJ8J9KwkLOMcg7Cp7tAxFqIKUoItM3eMgDukQN8HrrCG3dpesOhtRtkhWNCfkFs+Ki3GeANVIcEV82yw+55tYrT3mkP/2qhrGMRMW4vnJgRPbv6idvJFwNM54SrRoA/LQ1sXFd8w7Zgie/Eu75FDWP9glRfAITaoC/Zhj8d51GKnNsRmop33Fk7YtQFGH1p/ZLwDAKgTHICpSRtHdsTBcZ0tkYia6IZxejo+5Wl7ScwkPyXdAVwvRWelkFNAF4E4UCau2YYtdS8wjuFb8tj61oam1Q+8COkIWygkZBE+0bKA== 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=TWVjG1oP/UJm5gbDzSeQg2HzjnhnbJiFiYizx8ZIuV4=; b=a0ULNgSebEHhkMxDKVE3rGEAfyeuwo4ADfM7SYS2pmnBEoJs+CIlypwO+9SiyFmXfdwGa4xpeT4O2kCn/ZvJJwXVSkXAZcEOGeHmYigDnbNJ1OJEsRlCUNsiVLMEig7n77mkZ2FjIgN96wd558Ob5me5+4491piQ4bIH5rsWlbo= Received: from SN6PR11MB2558.namprd11.prod.outlook.com (52.135.94.19) by SN6PR11MB2928.namprd11.prod.outlook.com (52.135.127.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10; Mon, 6 Jan 2020 12:27:06 +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.015; Mon, 6 Jan 2020 12:27:06 +0000 From: "Ananyev, Konstantin" To: Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" , "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: AQHVqrGdgzOavE2LNkiVT0t9tP81o6fZGxxAgAQnYYCAAIEk4A== Date: Mon, 6 Jan 2020 12:27:05 +0000 Message-ID: References: <20191204144345.5736-1-pbhagavatula@marvell.com> <20191204144345.5736-10-pbhagavatula@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTY5OTU4ZmQtOGY5Yi00NGJjLTg2YmMtMGU0YjI5M2JhMTAzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib2xmN1wvZ21EWHhHaXBTckNobGNqYUJUWVkxUExad3Q3eVVjSXZZTyt3ZEQ3TittY0IrYXBkNlBkbzFpWGpFd1cifQ== 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.163] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 580d15bc-d234-46ce-70b9-08d792a3bdf2 x-ms-traffictypediagnostic: SN6PR11MB2928: 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:6430; x-forefront-prvs: 0274272F87 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(136003)(396003)(346002)(39860400002)(376002)(189003)(199004)(186003)(7696005)(2906002)(9686003)(8936002)(33656002)(55016002)(86362001)(81166006)(81156014)(478600001)(8676002)(71200400001)(4326008)(5660300002)(26005)(66946007)(66556008)(64756008)(110136005)(66476007)(76116006)(52536014)(316002)(66446008)(6506007)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR11MB2928; 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: z3mFviSM++WnzC3zey6DgpqEMp59KueUxZYkN+IU0mIZQEF11DHYYtabDQSdyBRuVVl9uZytizc8IoMYgSATMKXpFFHq7m4LCJXW5f9ps9Zsba15swf4vw65rwzNMMYBomzhWwCLkKOq//gKvdD0IiEOy22pZOkKVPu4XlVynBf3+0iS9xBhSZmzqyxP7zeHG3P5kO9PYoGwYE8HzzivCNwnseatkKB3DYj9szBsqVa5riYYco3eIvoRYxsA5PyFzDvH9hJVUUrTbmN8yp+H3Vk1W5vpPzKtoCwdZrgsWNJ77rVKGFoZGHzKjyS6p2jk3U16w2ELFa6+hECBShkVyqFoEVdjUbfhDGT7bHUa1+St3OGpvMf5klHsvMSxyXbOVSgDG69rBziAtPEklG6cwtPM4BW28AVxXyua+PClQ4IX8CRIBqFGW29xLG/AGP7E7FGS4YhtG/lviF8wh4xIO/Pb1aaAwfJQkt7uUG5YyahH8ZsUCJneeUnnq/YPlQf9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 580d15bc-d234-46ce-70b9-08d792a3bdf2 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2020 12:27:05.8242 (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: 93CHmH2gCCF1a1GImi+hNqXJNT5XFfOZvcT5fIGkT5SHhwIPUMtDoltBWALJSk/cdjFcoudTq09+gEIAtAyqJ4RvHVJnoqett5fCogQYFVE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2928 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" >=20 > >> Add em main loop for handling events based on capabilities of the > >> event device. > >> > >> 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(-) > >> > >> 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)) void *dummy); > >> int > >> lpm_event_main_loop_tx_q_burst(__attribute__((unused)) void > >*dummy); > >> > >> +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 > Need to satisfy the prototype requirements for > rte_eal_mp_remote_launch(l3fwd_lkp.main_loop, NULL, CALL_MASTER); Ok. >=20 > > > >> + > >> + > >> /* Return ipv4/ipv6 fwd lookup struct for LPM or EM. */ > >> void * > >> em_get_ipv4_l3fwd_lookup_struct(const int socketid);