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 7CEEEA2EEB for ; Tue, 10 Sep 2019 00:45:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 722A81ED7C; Tue, 10 Sep 2019 00:45:32 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by dpdk.org (Postfix) with ESMTP id 6FBFC2BE6 for ; Tue, 10 Sep 2019 00:45:30 +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=nf5K0/Wso9WXd2V1m6AscxxtLTAB+DsSHsAxSA2bgKE=; b=gRZb/RuVDdT5BAS79pbZzyXdla8C331MghwloklFpE8qGksdmIguTiIWj21VEVb3IhI8v9oE5ZD3h0mmPKxYOiWhk8z3fEkLGukrj84ouvjI7YigixN15MsNoNtP7sGqK21Vjssgw9eS1pOe9c2PCSH6P5V2fxQ548lx4EZKxyU= Received: from VI1PR08CA0186.eurprd08.prod.outlook.com (2603:10a6:800:d2::16) by DB6PR0802MB2326.eurprd08.prod.outlook.com (2603:10a6:4:86::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.15; Mon, 9 Sep 2019 22:45:27 +0000 Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::204) by VI1PR08CA0186.outlook.office365.com (2603:10a6:800:d2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.14 via Frontend Transport; Mon, 9 Sep 2019 22:45:27 +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 DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.14 via Frontend Transport; Mon, 9 Sep 2019 22:45:24 +0000 Received: ("Tessian outbound a68750feb7d5:v28"); Mon, 09 Sep 2019 22:45:20 +0000 X-CR-MTA-TID: 64aa7808 Received: from 09c7b83016c2.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.5.57]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5EE9E598-5226-4AFE-9920-CC34BF7D19B3.1; Mon, 09 Sep 2019 22:45:14 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02lp2057.outbound.protection.outlook.com [104.47.5.57]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 09c7b83016c2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 09 Sep 2019 22:45:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZeCJmvgFeDCBmjP1v/eOwn1eH8fT3iekPa2PH8TNuDaUn8yj9A3kSNHu2ZYxjxuc8Me47Wi2EoOMwC0ni8Gsy8G5edx7dzmlpCvNGRYBhfQG7Yo+QJSZN/i+qtR6TsaxXh391BH7dK0tInEUeNlKLpDbVsErLzd14EBA1UPFnuFCAfM9N+YVdQ5YJQZgV4ua63pBjcmWs2myXGVDO4a7sZo9XLdgbh/H/4j6mfN5446tdc7eOYxkNT95MFTdOGzf0B+hzEJTOX6AmvW+xz5kXuGKw1ynEANsnKASqct3TcaN8HcZ7lkJAthyv91ertw/DMeCKi8eEH3q0ZbK2a1ong== 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=nf5K0/Wso9WXd2V1m6AscxxtLTAB+DsSHsAxSA2bgKE=; b=njaqbpMNAkNMNC8gPWdgtmodWyUmarpmYbyyKaJPFOebphWoqqpsqjzKoqHnqCHHDCmunnYL+Ai2Gq2hf9yPQ/QCz2ZASz0WSH43lgPtAwLNBi/oEKbsTflJjs8Q5+1iVosg850j7nSgKssG+8BHWcpmR07iwWkw9luVLNmgURc3BqjDh8EdY7MrbaoyM50h4fFXXXQ4kHOWglxyyf5Cr8l2EVYqqWpLtYkqL/BCm8EeyjD0H5MjW1iKYsrBAuPljwrL85a6BwqMI4aRoypTiBy9uqPFWHEJpy1MZ7ZbsfGuj2Hm6a923KRNB8BTv3DQ6dW9KLoH1HWku4ploQi9LQ== 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=nf5K0/Wso9WXd2V1m6AscxxtLTAB+DsSHsAxSA2bgKE=; b=gRZb/RuVDdT5BAS79pbZzyXdla8C331MghwloklFpE8qGksdmIguTiIWj21VEVb3IhI8v9oE5ZD3h0mmPKxYOiWhk8z3fEkLGukrj84ouvjI7YigixN15MsNoNtP7sGqK21Vjssgw9eS1pOe9c2PCSH6P5V2fxQ548lx4EZKxyU= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.152) by VE1PR08MB4687.eurprd08.prod.outlook.com (10.255.115.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.18; Mon, 9 Sep 2019 22:45:12 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::5050:1354:f0bd:4b92]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::5050:1354:f0bd:4b92%7]) with mapi id 15.20.2241.018; Mon, 9 Sep 2019 22:45:12 +0000 From: Honnappa Nagarahalli To: "Ruifeng Wang (Arm Technology China)" , "Ananyev, Konstantin" , "Kantecki, Tomasz" CC: "dev@dpdk.org" , "Gavin Hu (Arm Technology China)" , Honnappa Nagarahalli , nd , nd Thread-Topic: [dpdk-dev] [PATCH 0/2] add lock-free mode for l3fwd Thread-Index: AQHVZJ2Q1XHMMc8yV0CKKz3cRmji26cedEgAgAQfuaCAAWEjcA== Date: Mon, 9 Sep 2019 22:45:12 +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: ccef54ec-ee94-417f-9ecd-22d22c5949da.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 48d319b4-f6a8-4fc7-b894-08d735776733 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam-Untrusted: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VE1PR08MB4687; X-MS-TrafficTypeDiagnostic: VE1PR08MB4687:|VE1PR08MB4687:|DB6PR0802MB2326: X-MS-Exchange-PUrlCount: 1 x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:1728;OLM:1728; x-forefront-prvs: 01559F388D X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(136003)(346002)(376002)(39860400002)(199004)(189003)(55016002)(76116006)(99286004)(8676002)(6306002)(81156014)(186003)(86362001)(81166006)(66946007)(9686003)(476003)(71200400001)(71190400001)(54906003)(446003)(6116002)(316002)(3846002)(6436002)(25786009)(110136005)(66066001)(76176011)(486006)(11346002)(7696005)(478600001)(26005)(33656002)(53936002)(102836004)(4326008)(229853002)(7736002)(66556008)(66446008)(66476007)(64756008)(8936002)(305945005)(2906002)(74316002)(5660300002)(966005)(14454004)(14444005)(256004)(6246003)(6506007)(52536014)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4687; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: 9WZq7K8zNsFqQh1xIFR6F7AA4kRLXsXZyoCDa04ImcYIOzCUB5fNJnQV0MUL2boYpENM5ruMw3LL1bpXXhtHkothfmiUbQxdM9mYuckdn8sjwVm+d54UB2Rc2g4FweMvT6AnZmcaSt6GJk820lzJh/8E6XtZVdagAX6KDA9kgieMcXBqZwgBuugcWfG1E7ZxwI+V2ntPUkVpoLnTuEzCXeiLpRaCh1ldCPkX8n+0YDCfjLQyqqE25MoZd/jSQze3akRADgPhfeFaOHXkyrMTbenqCAP/GhNJplhwvxw4EZCawvA2HVPsR2HxcALKBHN7BtlQJ3+FysgKdZETsPb8eec0SnrSdzsq9o+iyB9XfvDI7J3WEuoslCd4fVLvTvVtB//OUXWUgI3FVUB0K/asEDp2mjxnQ0F8YmJCBmBbhAc= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4687 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT016.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)(376002)(346002)(39860400002)(396003)(136003)(2980300002)(189003)(199004)(336012)(8746002)(46406003)(50466002)(110136005)(99286004)(26826003)(7696005)(47776003)(966005)(14454004)(356004)(63350400001)(97756001)(126002)(486006)(11346002)(54906003)(70206006)(70586007)(476003)(66066001)(86362001)(305945005)(316002)(74316002)(22756006)(8936002)(81156014)(14444005)(76176011)(3846002)(6116002)(9686003)(6306002)(5660300002)(81166006)(25786009)(63370400001)(446003)(76130400001)(478600001)(102836004)(8676002)(7736002)(52536014)(6246003)(23726003)(186003)(2906002)(4326008)(6506007)(55016002)(26005)(229853002)(33656002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2326; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:TempError; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 4c1e60ba-f920-400b-c2e8-08d73577600d 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:DB6PR0802MB2326; NoDisclaimer: True X-Forefront-PRVS: 01559F388D X-Microsoft-Antispam-Message-Info: Ioq168se/bRdJ8stWMv6IXbiyvfekvpgbGrrIHm2c+Abe0NvuiKplis0ZAX/QaoGHlFmP/k1726PIFfY1UivQN07wR1RWAAjpGhWXlUDwCckBoJx3ATsGL9I2c6XgZuOtHHGrS59R3WY2ty1vxzR/kgPeIvXUWjShx1wrXqDF5EC7ElUw/cqy0C+m68XoBDNJFRPaZX0AbzAwejLX39moovsNXQCPpguvhA2Zv8JEt3jLQGj5GtM9Lp3KVOox+LzPyTP2y7OS7iNtTVunqWyx2MJ/38vj7SuUHeIEHKGn2Gw4rfW9Ck+/wFOQHrRm2cNzEtOcfMlhTZcOqoPqpQwUoKNXIXOy1jHykaD6HWOGztBJ72gFdrycwCzgjVwTejUYWua51KE27NzKrTG8RU+AUuXJedQRJdllb9Z+1xT3o0= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2019 22:45:24.4337 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 48d319b4-f6a8-4fc7-b894-08d735776733 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: DB6PR0802MB2326 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" > > > > 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-coded. > > 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 f= ile 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 rout= es), > they affect the data path performance as well. > Since l3fwd application is showcasing data path performance, we need to > show the impact of including the quiescent state reporting on data path. > This change also serves as an example of using the RCU APIs. >=20 Without the dynamic deletes the quiescent state reporting overhead is not c= aptured completely. I suggest that we add and delete a small set of unrelated routes (the route= s that are not used currently) on a regular basis. > > > > > > 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