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 EBA01A0471 for ; Mon, 9 Sep 2019 03:52:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 183AC1EA55; Mon, 9 Sep 2019 03:52:45 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150089.outbound.protection.outlook.com [40.107.15.89]) by dpdk.org (Postfix) with ESMTP id 31FA91EA52 for ; Mon, 9 Sep 2019 03:52:44 +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=kPZGGcqbHqaBCq4aa1qqNgsbOnCH8QHBX6E5l86xZ+c=; b=awdYz1E8X3zERnacmexf2aZ1z8shAz/7psSpUVgaSo7pO84g35qUYAAAPvV4VEaOYMTgaWEdwSveuULzVb+C4hltqdzc7LdrdU9PVaQn2diSd9QPFC1IEop4rPDSCz1l25THepIM48Y5VExlDU/fdr3DflTRbfNh/1VxiLiG1h8= Received: from AM4PR08CA0054.eurprd08.prod.outlook.com (2603:10a6:205:2::25) by DBBPR08MB4774.eurprd08.prod.outlook.com (2603:10a6:10:d5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2220.20; Mon, 9 Sep 2019 01:52:41 +0000 Received: from VE1EUR03FT061.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by AM4PR08CA0054.outlook.office365.com (2603:10a6:205:2::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2241.14 via Frontend Transport; Mon, 9 Sep 2019 01:52:41 +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 VE1EUR03FT061.mail.protection.outlook.com (10.152.19.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2241.14 via Frontend Transport; Mon, 9 Sep 2019 01:52:40 +0000 Received: ("Tessian outbound f83cc93ed55d:v27"); Mon, 09 Sep 2019 01:52:37 +0000 X-CR-MTA-TID: 64aa7808 Received: from 9f976eb6d570.2 (cr-mta-lb-1.cr-mta-net [104.47.2.54]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5DD8517A-A5E0-4817-A1E3-A173DF4B051C.1; Mon, 09 Sep 2019 01:52:32 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01lp2054.outbound.protection.outlook.com [104.47.2.54]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9f976eb6d570.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 09 Sep 2019 01:52:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gC9bId/EErgui9ucuT63WXdePo7s/cGSLfjnxMF8GewqPcILT6iGC/hf7DiWHWqjE8mqDvxTyewt6ZW9MiU1wVQlPI+thxafOpRmHreYuPA4+VeOOXpIuG1ZxB5C1u0/5cnTLLMcBxtNnRGZ4Zeh+Eg6wmyM3kslBEwDViEuCLYkGW+9bncegNCAqrcBR5nifPvUG/UQK2nGiaXel6PRjJQnKhpvUr5f+Qa/lUzWzVJdMFXT1XrJ/9BmHB8jMzFOvxLE4rOvHwjlzyLY7MJHoJN6o1f1U2QEb1Xxf7kbqBvZFemlmmAR9OZ37T64n235/uZRAzi/sH1H+ZdiF3VnGg== 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=kPZGGcqbHqaBCq4aa1qqNgsbOnCH8QHBX6E5l86xZ+c=; b=OTDdX6NZDXu0uR/dp0RMLJc2+oomuppKTeMQwWcJuHHUq6N06LLs40G6acj9EeZkbPE54C647du07r4/jr+5TaTxTqU8G+1MphUM8Nya6YdtHPQnZzrGdtn5KV2qZvVmVCVZQCV44aXq4CP2iG6ZmlhJHcUUjySFKFZ0Ipp5xvJ7texH4CewFkv5RCzDPpDCIR1e//K7tiyplyn+KuNsbswuVHOvrjkvxe8ovbTwn8j+OCSlgpJKHcKydHCWvdELyQcGFHgo9VFlMvFU3f3IrQOXjmEpGbsBxyvvJ+CUorLUbX8PN+GJ8BB+4l+EVq27HJNnEVMf23gFVBmuctl6Vg== 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=kPZGGcqbHqaBCq4aa1qqNgsbOnCH8QHBX6E5l86xZ+c=; b=awdYz1E8X3zERnacmexf2aZ1z8shAz/7psSpUVgaSo7pO84g35qUYAAAPvV4VEaOYMTgaWEdwSveuULzVb+C4hltqdzc7LdrdU9PVaQn2diSd9QPFC1IEop4rPDSCz1l25THepIM48Y5VExlDU/fdr3DflTRbfNh/1VxiLiG1h8= Received: from AM0PR08MB3986.eurprd08.prod.outlook.com (20.178.118.90) by AM0PR08MB4610.eurprd08.prod.outlook.com (20.178.23.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.20; Mon, 9 Sep 2019 01:52:30 +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.2241.018; Mon, 9 Sep 2019 01:52:30 +0000 From: "Ruifeng Wang (Arm Technology China)" To: "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: AQHVZJ2RE3+uO/G+WUmOLRh3JRpdcqcedEgAgAQfuaA= Date: Mon, 9 Sep 2019 01:52:30 +0000 Message-ID: References: <20190906102615.36942-1-ruifeng.wang@arm.com> <2601191342CEEE43887BDE71AB977258019192657B@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB977258019192657B@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 88b6707e-45a1-49a8-b60c-167c8c75ebc4.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: 7c596b39-9216-402e-d7fe-08d734c865df 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:AM0PR08MB4610; X-MS-TrafficTypeDiagnostic: AM0PR08MB4610:|AM0PR08MB4610:|DBBPR08MB4774: X-MS-Exchange-PUrlCount: 1 x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; x-forefront-prvs: 01559F388D X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(136003)(376002)(346002)(366004)(13464003)(189003)(199004)(86362001)(966005)(8676002)(186003)(81156014)(81166006)(7736002)(26005)(4326008)(8936002)(2906002)(6306002)(55016002)(25786009)(229853002)(6436002)(305945005)(102836004)(74316002)(6246003)(66066001)(6506007)(53546011)(3846002)(33656002)(6116002)(53936002)(55236004)(316002)(446003)(5660300002)(52536014)(99286004)(9686003)(14444005)(256004)(110136005)(7696005)(54906003)(71190400001)(66946007)(76116006)(486006)(66476007)(66446008)(64756008)(478600001)(66556008)(76176011)(14454004)(71200400001)(476003)(11346002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB4610; 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: 4G+54YROtlLmE5wTt6091jotiGysAJbRN494PJtVyGYqXU1M5BKeqZt72kvs9kNjboyHr2Cr4gIUAZUYMZlemCH7xpN8vaomOlTlvJqDlWbVAt/a8c16og4dW0b/aFzz9lIba9R8i79qwehJcnsHn//t+HDI6REvva94ZcUfIgMLBIdUugVgNgn9hXrHWzgWO+ajFhimxyQd7i7zZkribMaR91GZ/+a647kniWtimDzgs82YghMwNxQGvYAyDLHMFoId1hATGwSdj+n7w8nN3fesdIgUiofDN4xGBtmqqFcng/FW+cQM3WMWVd1dXtGZvOgVzOnYvOAvNlykGE1q9/xEayTtVyqZaAQhBsiAmobIIIaveBvZ15nakQ5LrMm4k2SbPS/moJkv5vCR8guNCe8FD0mG1EAYDN+dE9oIbsQ= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4610 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ruifeng.Wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT061.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)(376002)(39860400002)(136003)(346002)(2980300002)(199004)(189003)(13464003)(476003)(9686003)(486006)(446003)(966005)(66066001)(50466002)(356004)(186003)(52536014)(478600001)(76130400001)(74316002)(6246003)(5660300002)(8676002)(22756006)(7736002)(47776003)(25786009)(4326008)(86362001)(305945005)(14454004)(2906002)(7696005)(46406003)(76176011)(55016002)(70586007)(316002)(6506007)(54906003)(70206006)(8936002)(36906005)(6306002)(229853002)(63370400001)(63350400001)(126002)(11346002)(14444005)(23726003)(336012)(6116002)(26005)(3846002)(97756001)(81156014)(53546011)(102836004)(8746002)(110136005)(99286004)(81166006)(33656002)(26826003)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:DBBPR08MB4774; 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: 7b52f140-25b4-426a-463a-08d734c8601d 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:DBBPR08MB4774; NoDisclaimer: True X-Forefront-PRVS: 01559F388D X-Microsoft-Antispam-Message-Info: G6UvECwvtJAh74FOTFDZ7efCZvPWTIBhou1NHtXvFgwmPFfZvj+YmmEhhx9hDiL7h1CAMNuJ+fWoN6cdiX4t1T2v5JIq4iw7l4y5CATZ0oFcV9SHS6blIQtJmpsZlOnI6zY6xz9LByUKWntHAn9TnOWEgfVe4Wv9P87E8isPm7hWIlzsJlpNAguwU11/dLe40xZnu3k+fyLIfB8FG/F6ftAQZJVERYUex30gjYMG75WxWBHCAccS6NlUkF2/V6GiPFiAArt2mCsxXHy9B7lLKaIT+lGlKxZsw9AxsKz4YpOBlkNlEONdf1QOSmCsEm21DaqklEHx3Mr/lg3ykBhOh0IkO+e5Maj7/aZjNplrD6bHoO4ItsadVO7bORwIX9LARtYHdff198mdokFuBYEKkSY13pRXyrQaCLIBaYjnIFE= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2019 01:52:40.1975 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c596b39-9216-402e-d7fe-08d734c865df 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: DBBPR08MB4774 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, > -----Original Message----- > From: Ananyev, Konstantin > Sent: Friday, September 6, 2019 18:35 > To: Ruifeng Wang (Arm Technology China) ; > Kantecki, Tomasz > Cc: dev@dpdk.org; Gavin Hu (Arm Technology China) ; > Honnappa Nagarahalli ; nd > Subject: RE: [dpdk-dev] [PATCH 0/2] add lock-free mode for l3fwd >=20 > Hi, >=20 > > > > 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. >=20 > 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 fil= e or so). > Konstantin >=20 Thanks for your questions. Currently, we have no plan to enhance l3fwd with ability to dynamically upd= ate table contents. Lock-free method is being integrated into Hash library and LPM library. Lo= ck-free algorithms are not only about control plane (adding or deleting routes), they affect t= he data path performance as well. Since l3fwd application is showcasing data path performance, we need to sho= w the impact of including the quiescent state reporting on data path. This change also serves as an example of using the RCU APIs. > > > > 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