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 63B05A04F1; Mon, 6 Jan 2020 05:44:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 285601C201; Mon, 6 Jan 2020 05:44:17 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 49A661C1CE for ; Mon, 6 Jan 2020 05:44:15 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0064hEgs023182; Sun, 5 Jan 2020 20:44:14 -0800 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=X5y0SWJg3vsx9M4v8knbt3oo8ME+E9dWxVETUUxvCCQ=; b=LmQRRN8KQifbeC/TOdlLlDwioeiK/wGdO+h19EPEkvy2Oiqm1D0X2q5Xfyf5/3yTnWRS tjx0rVEfPYR/Fm9w3pIb5OLPK2NVDzLOoBd3uLMk7BQ0HgnQvNrQjTn1qBdp0UNoJmJ9 s2kqZOs3fooH6xY7JfPrMjgQKuf1HmoI/G4kw4Jc+n4gVmTzLkKLIqvZEiMwtrKol0AA MapsyxyyAn8XMnlV3Nd/usTWhqFGyXYygXnRpuXvTA+8ewoLNnAew85VBqo1RLUA4D0b W40b5j3NaBoiwu3osDf+BHcX/MUMrxdSVhzxqS17yihPLTzqAhVBBbVKGt2vxQRmSaaD mQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2xarxv4jba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 05 Jan 2020 20:44:14 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 5 Jan 2020 20:44:12 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sun, 5 Jan 2020 20:44:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JcYsxXczXcdtMiougL2pUyNELTQjkiNBpFGIbhbMvotzbT33XcTbkMXa7/Fyx/4Vz5FKPCnuAKK24WdPmvNyhmWpcLnYNSvPlEUbDDw0Taof93ot0ghuCJFdPfeOjERqdhc9ad38+GV2KhdBEhoBOxs1a86qE6V3I+G7p9JnvNVhb5ElLotEQfIzIfT3w+Aar2HSmxoKyVc8Ii4UUvHzcP/YaA8rWi4ouWtNK+TvU3yr2VZa3lAdCH3pZkRVRy6d57padM3GwdTsXQQhRUdG1vNe/pwHspGW8lx8lW00q4vN0YIje9u/ZznKfmOVIZOpjBLd+ufAFGfrx5v0EvxYUQ== 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=X5y0SWJg3vsx9M4v8knbt3oo8ME+E9dWxVETUUxvCCQ=; b=CG73lCoR6aG8lhiNk4XGNa0nYySSYr47WydISLaWHeC69RvmV3Gs+A2koCaLOBMuu76lZfVktwU2gcHFXswqvSzzuJ6veJAZIlsF8m28V3urAg3wdnGkpWMb7kNoESM4Q25j/UowowZ8gkBKdF4UGGtpaUCfjBvo9gRqcJXJwQWMCcbS6Tiqr28cgOSpf0iDW/DzYdTg1OlEz7og9CBozNORcHdaVE/f35uSf7SHXoLG6EJ2wptgqral2Lrkt9AkvVrgm5aAhVJq7q6GZNhWHjUQVB8No4m/3Z2asv+61QQ5GVsqJoviP79coFGP9nEe58Jqo5O+sFN/TnaRt0GWQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X5y0SWJg3vsx9M4v8knbt3oo8ME+E9dWxVETUUxvCCQ=; b=A8zwvlCSNXVQd6PWCw3zoaKm1Hz9Mhobqr0508j80dtGU8sAuI/MCs3vxZFe/MWRZ3IRKqDLygjsSPgcIFwAw3It4hfamiyfNsaYUqznt1TLQuBHevsRJWgDCJfVa5xpBX/oGHR37fuy9rmW4cFZi0ubnkhWro2599XKsExvJgM= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.160) by CY4PR1801MB1829.namprd18.prod.outlook.com (10.165.88.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.15; Mon, 6 Jan 2020 04:44:11 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::edb0:c18d:7455:f60b]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::edb0:c18d:7455:f60b%4]) with mapi id 15.20.2602.015; Mon, 6 Jan 2020 04:44:11 +0000 From: Pavan Nikhilesh Bhagavatula To: "Ananyev, Konstantin" , "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: AQHVqrFtutTF0W68xkimLoypm3VVdafZIreAgAQfnaA= Date: Mon, 6 Jan 2020 04:44:11 +0000 Message-ID: References: <20191204144345.5736-1-pbhagavatula@marvell.com> <20191204144345.5736-10-pbhagavatula@marvell.com> In-Reply-To: Accept-Language: en-IN, 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: f3eb8d3f-4fc6-4532-7d5a-08d792631322 x-ms-traffictypediagnostic: CY4PR1801MB1829: 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:(10009020)(4636009)(39850400004)(396003)(366004)(136003)(376002)(346002)(189003)(199004)(52536014)(6636002)(76116006)(64756008)(66556008)(66476007)(66946007)(66446008)(8936002)(5660300002)(4326008)(8676002)(81166006)(81156014)(55016002)(9686003)(33656002)(478600001)(7696005)(26005)(55236004)(6506007)(86362001)(2906002)(110136005)(316002)(186003)(71200400001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1829; H:CY4PR1801MB1863.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: BCL:0; x-microsoft-antispam-message-info: W7p6gPLkYqvVpbu298UoF9OBtAFActoWSL1zLZ8bWn44FUCHtcTFYHVo4KbK1463Keluz/AMTRxG96YiJDjtx+h+uBJS3LjVXQ3iBzr6+vTCrcWcZ/VHBXpyawmY9/kF3meZuPtvVCSaimM0v2kCFwg9rfLq3orki3TcB9AwXhK2UkA8N5J3cLAmxNwc+eCJJe+2x+fUR65t2wlJKrYehfVRxEkvD3Y+YsT6aewbWE0ZdyQtBSFmL+V6/Yw4pBTkNv6N76hp16m7rbcu25B1LD0REFHrXB8bCotEyVsc2NMddyOJ6wPlDVtmk+TCQNSySyR+EUdV+ODXx/MXVb/HWRKEgWM/RwSc2nMPIo/ECyGqVq+nEyWR9CQNJOf96VNMpH24+N7/bMGJ/PmlW3ugM6GyMRlHeEBjzGtZIh4ZkqCIwRVS0j59RUcxYpGkkKekKKfSIRzybfz3qsfc8N9nHJv4MO7QsAZsY/CwCJi0HXajOrrhv6BGCD5kEMoHlqln Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f3eb8d3f-4fc6-4532-7d5a-08d792631322 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2020 04:44:11.4650 (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: 1jLLNzp8t0C6chPMHXLL9/bwbdmlszPKlUoTvT/lnqeLJ0eCprGp8Lf29SoG31sx32uDKluad2I4cwSbts9b0xC2di4WePb4rKUVwc0BrBo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1829 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2020-01-05_08:2020-01-02,2020-01-05 signatures=0 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. >> >> 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? Need to satisfy the prototype requirements for rte_eal_mp_remote_launch(l3fwd_lkp.main_loop, NULL, CALL_MASTER); > >> + >> + >> /* Return ipv4/ipv6 fwd lookup struct for LPM or EM. */ >> void * >> em_get_ipv4_l3fwd_lookup_struct(const int socketid);