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 5B80EA2EEB for ; Tue, 10 Sep 2019 08:25:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 05ADC1EBBC; Tue, 10 Sep 2019 08:25:15 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150042.outbound.protection.outlook.com [40.107.15.42]) by dpdk.org (Postfix) with ESMTP id 9BCC91E9A7 for ; Tue, 10 Sep 2019 08:25:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6MBlhqIGtllTnMOy3uZen5ZxfgKymqEusStJzUWvzRw=; b=xlDF/cbSh2F7fdkpZVxFSwJjK6TN8s5jv0ERXg9nNnJo/c2KzpX6ck84hpVw8ITIZtLbyJzYYSs+VD+QWJJnRYe1UFYRHgmSiZuxxxCDx6i5OTBqwCj61qHt8uLnjaFxr2LVvw9qFP6EHDTcu6WNDkzAfrSGgUU8MDSs0NVmnnA= Received: from VE1PR08CA0021.eurprd08.prod.outlook.com (2603:10a6:803:104::34) by AM6PR08MB3702.eurprd08.prod.outlook.com (2603:10a6:20b:8e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.15; Tue, 10 Sep 2019 06:25:11 +0000 Received: from DB5EUR03FT058.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::209) by VE1PR08CA0021.outlook.office365.com (2603:10a6:803:104::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2241.14 via Frontend Transport; Tue, 10 Sep 2019 06:25:10 +0000 Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT058.mail.protection.outlook.com (10.152.20.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2241.14 via Frontend Transport; Tue, 10 Sep 2019 06:25:09 +0000 Received: ("Tessian outbound 24b6d28e5e38:v28"); Tue, 10 Sep 2019 06:25:07 +0000 X-CR-MTA-TID: 64aa7808 Received: from 33cfe59dd4e3.2 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.1.54]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 67108DFE-3054-47AB-BB23-6C758CC1D1DD.1; Tue, 10 Sep 2019 06:25:02 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01lp2054.outbound.protection.outlook.com [104.47.1.54]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 33cfe59dd4e3.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 Sep 2019 06:25:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oI4PTU6APFfMIDLJN+dFbvQwnaW95GCTrHuuW/Qr0JCKVHSmX0G5UqhUNc3i5Y+mGy6XcAVLcoPU4+6RfxCNe4A3etUlr4eOyJsmvjlcHxMlwF2qflQgpuDVNS/Qj5zVZdUq57J5/SQ3cNhDsGZc8iy/QvFBvi7LApe/oXLGmhZWWme1/wD/tg9Fnbs5xLR2X0SJ2xGRgPNrfxus+R5h+dabZw2fvdaFgaQQ3GqcY9vX32zYaO+a8rtk7bEN+6LygMYG0vIlU8TLFeB4xggpIWF6LXtZngrW1pzW6VN7eBGW5bLXUPq3J4XBx26XE8SrGA0/l1sGh4JmLSA1vM+OcQ== 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=6MBlhqIGtllTnMOy3uZen5ZxfgKymqEusStJzUWvzRw=; b=HKrUvUAuLt1nsXDAYiteur5H82L4elx3o3Q3sbRn6MDhIdPLgGQl6sYr9P+323WI/j0tQD+VtgFv2tQ56PAfLC/ymx3eK7XQQLZQA8VqNc2ViKovHCk4qGucr/rseNqFH8g0xFJvXJrHjC0bRdI5gU8hI5d8WDB+hnJwfFeGHBbgOaVKsQSzkLN1V8lvp43KzjndFTImNW0eS6mLl6h9UAy2vrypiP3S2D95QGESo2VicYbqlHt8sc2oKYZCjno8sx/wtK2trhalPaQI/JL9FXRHINH49xZWHXt4avSNVUV0S5IgqkqSeXwLchwtIrZBrNY1pE78b1D2t91HiS55/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6MBlhqIGtllTnMOy3uZen5ZxfgKymqEusStJzUWvzRw=; b=xlDF/cbSh2F7fdkpZVxFSwJjK6TN8s5jv0ERXg9nNnJo/c2KzpX6ck84hpVw8ITIZtLbyJzYYSs+VD+QWJJnRYe1UFYRHgmSiZuxxxCDx6i5OTBqwCj61qHt8uLnjaFxr2LVvw9qFP6EHDTcu6WNDkzAfrSGgUU8MDSs0NVmnnA= Received: from AM0PR08MB3986.eurprd08.prod.outlook.com (20.178.118.90) by AM0PR08MB5378.eurprd08.prod.outlook.com (52.132.213.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.13; Tue, 10 Sep 2019 06:25:00 +0000 Received: from AM0PR08MB3986.eurprd08.prod.outlook.com ([fe80::8194:f229:b0d2:b5df]) by AM0PR08MB3986.eurprd08.prod.outlook.com ([fe80::8194:f229:b0d2:b5df%7]) with mapi id 15.20.2263.005; Tue, 10 Sep 2019 06:25:00 +0000 From: "Ruifeng Wang (Arm Technology China)" To: Honnappa Nagarahalli , "Ananyev, Konstantin" , "Kantecki, Tomasz" CC: "dev@dpdk.org" , "Gavin Hu (Arm Technology China)" , nd , nd Thread-Topic: [dpdk-dev] [PATCH 0/2] add lock-free mode for l3fwd Thread-Index: AQHVZJ2RE3+uO/G+WUmOLRh3JRpdcqcedEgAgAQfuaCAAWM+AIAAcrAw Date: Tue, 10 Sep 2019 06:25:00 +0000 Message-ID: References: <20190906102615.36942-1-ruifeng.wang@arm.com> <2601191342CEEE43887BDE71AB977258019192657B@irsmsx105.ger.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 395d7c8b-5f60-48f2-98ac-b00452549b86.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Ruifeng.Wang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 58fbd7e4-d3c0-4adc-25e2-08d735b7a12c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam-Untrusted: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR08MB5378; X-MS-TrafficTypeDiagnostic: AM0PR08MB5378:|AM0PR08MB5378:|AM6PR08MB3702: X-MS-Exchange-PUrlCount: 1 x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508; x-forefront-prvs: 01565FED4C X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(376002)(346002)(39860400002)(136003)(13464003)(189003)(199004)(99286004)(446003)(14454004)(7736002)(3846002)(55016002)(66066001)(966005)(6246003)(305945005)(486006)(26005)(55236004)(25786009)(76116006)(11346002)(5660300002)(186003)(81156014)(316002)(81166006)(6306002)(8676002)(102836004)(229853002)(6506007)(53546011)(6436002)(66446008)(76176011)(9686003)(6116002)(7696005)(86362001)(64756008)(66556008)(4326008)(2906002)(74316002)(66946007)(256004)(14444005)(8936002)(110136005)(54906003)(53936002)(33656002)(71190400001)(71200400001)(66476007)(52536014)(478600001)(476003)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB5378; H:AM0PR08MB3986.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: DkVISQIDKJdy1J9QkbrUt4byVWW2yBfH1i2eXHKifz2kgPU7BkqNuG4w2Z1U1jXNCNFhR9Zt3i6AONETWOH+NyV+OsZWDuDl9EaoLvBlSJvM0O6DMQ0uHVl9C2SNLf389eZRoNFwjIlvAQP/FeN6DyQVKJFOb5iEsULV6xit49VzU2nM2g33YdHOFd2dOD0lVg75+5AdRLZXC48oWMP1pw92PYZKog5OGY4wCRLT0LXPLiiCf+FGnNjam6aojpeaTHrNDb21i+9xYZ7/7g9RiRdPBU8IXJTN+7tzIFyMGClidZ+kpGuadZ+KxzKruBi/p5N4DqvVbD4k9B8mijeh1jKRtAr5lDev9pn89pq2VF9mfS/4eIeKU+twKnh7lbyvWQTZeHFXf213rdl4IT5C3fzAmBMjiUDBg8HGdPGJYlk= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5378 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ruifeng.Wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT058.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(39860400002)(376002)(346002)(2980300002)(199004)(189003)(13464003)(76130400001)(5660300002)(81166006)(446003)(81156014)(26826003)(63350400001)(63370400001)(4326008)(6116002)(966005)(486006)(8746002)(336012)(76176011)(8936002)(476003)(23726003)(3846002)(33656002)(46406003)(25786009)(14454004)(11346002)(97756001)(86362001)(126002)(229853002)(478600001)(102836004)(74316002)(7696005)(186003)(70586007)(70206006)(6246003)(99286004)(305945005)(26005)(356004)(7736002)(47776003)(6306002)(53546011)(54906003)(66066001)(110136005)(52536014)(316002)(8676002)(50466002)(9686003)(22756006)(55016002)(2906002)(6506007)(14444005)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3702; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:TempError; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 460d7edf-da3b-4048-e489-08d735b79bf6 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(710020)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM6PR08MB3702; NoDisclaimer: True X-Forefront-PRVS: 01565FED4C X-Microsoft-Antispam-Message-Info: iSdbRiTgKAW1NdoKtbcwQGcGYEkwVwKd0Ty0OpQzT0tViT5oPpQjxEjkyiXOsK/VPKOsmiqYigHJx2d0v9v5BCdZaWizuFOxuJZ0d46iXodcHbhDO/jF5hVP4FU41PAAMTi4V+MzTziB7GNNZkOK6acZPrnES8HOzmMSXLxR7qY8d4y0nR3XZLU+7JU3B0hZe+xA+teWLm5BnUWc34l/u+k11KvmpBVdmuIbUuZFHkjXf/0QftC35JilZzJZK8USV9Db8XuaRUe06UtZ5F9yowr9bc5RSiHT2jUlHeeEikHIuuORaet+gbukyxfDRyr16TzI8F60/nlRtyleZvhefJMVCYvaWUmfznK9KLGNyRqX+wc8w6XjRJTs75DuBe/aMg0oesdi3nBVBU6qpWQk/mjTMa9okqxalNak5DvrBMM= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2019 06:25:09.4956 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58fbd7e4-d3c0-4adc-25e2-08d735b7a12c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3702 Subject: Re: [dpdk-dev] [PATCH 0/2] add lock-free mode for l3fwd 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: Honnappa Nagarahalli > Sent: Tuesday, September 10, 2019 06:45 > To: Ruifeng Wang (Arm Technology China) ; > Ananyev, Konstantin ; Kantecki, Tomasz > > Cc: dev@dpdk.org; Gavin Hu (Arm Technology China) ; > Honnappa Nagarahalli ; nd > ; nd > Subject: RE: [dpdk-dev] [PATCH 0/2] add lock-free mode for l3fwd >=20 > >=20 > > > > > > Hi, > > > > > > > > > > > Lock-free mode is supported by hash library and LPM library. > > > > Now we add an option for l3fwd example to enable the lock-free mode= . > > > > Necessary preparation steps are added to use lock-free LPM mode. > > > > > > Can I ask about the purpose of these changes? > > > Right now in l3fwd both lpm and hash tables are static and hard-code= d. > > > we initialize them at startup and then just do read from them. > > > Do you plan to enhance l3fwd with ability to dynamically update > > > tables contents? > > > Though fir that we first have to get rid of hard-coded values > > > (config file or > > so). > > > Konstantin > > > > > Thanks for your questions. > > Currently, we have no plan to enhance l3fwd with ability to > > dynamically update table contents. > > Lock-free method is being integrated into Hash library and LPM > > library. Lock- free algorithms are not only about control plane > > (adding or deleting routes), they affect the data path performance as w= ell. > > Since l3fwd application is showcasing data path performance, we need > > to show the impact of including the quiescent state reporting on data p= ath. > > This change also serves as an example of using the RCU APIs. > > > Without the dynamic deletes the quiescent state reporting overhead is not > captured completely. > I suggest that we add and delete a small set of unrelated routes (the rou= tes > that are not used currently) on a regular basis. >=20 Add and delete unrelated routes on a regular basis will simulate overhead o= n control path. However, control path performance is not a l3fwd showcase, an= d it is covered by LPM performance unit test. On data path, quiescent state reporting overhead is constant (calling of rt= e_rcu_qsbr_quiescent). It will not be impacted by route addition / deletion.=20 > > > > > > > > Patch 2/2 has dependency on RCU QSBR integration with LPM library: > > > > http://patches.dpdk.org/project/dpdk/list/?series=3D6288 > > > > > > > > > > > > Ruifeng Wang (2): > > > > examples/l3fwd: add lock-free option for l3fwd > > > > examples/l3fwd: integrate RCU QSBR for LPM mode > > > > > > > > doc/guides/sample_app_ug/l3_forward.rst | 3 ++ > > > > examples/l3fwd/Makefile | 1 + > > > > examples/l3fwd/l3fwd.h | 4 +- > > > > examples/l3fwd/l3fwd_em.c | 10 +++- > > > > examples/l3fwd/l3fwd_lpm.c | 72 > +++++++++++++++++++++++-- > > > > examples/l3fwd/main.c | 27 ++++++++-- > > > > examples/l3fwd/meson.build | 1 + > > > > 7 files changed, 108 insertions(+), 10 deletions(-) > > > > > > > > -- > > > > 2.17.1 > > >=20