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 1A82AA0526; Fri, 10 Jul 2020 04:29:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFF211DC56; Fri, 10 Jul 2020 04:29:19 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20076.outbound.protection.outlook.com [40.107.2.76]) by dpdk.org (Postfix) with ESMTP id E22D91DC51 for ; Fri, 10 Jul 2020 04:29:17 +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=Sd0M9mEp2GeaD7GxRvQO8S93WlpVTjs6jdVFr3/Bhfw=; b=kNQoeee92X5TOiwYOTOunvjt9U4lDkTbTimkeG3FMr+1Ewpa2LN4MsLPlj9E8Eby9xt1sL9zcBippGtQRoAik1VGLgTsWDn44nqAWNDBcS/IFvyCwrcvOkR2Ke7SUunl1gSDHr2oJ2ogN7MTqkkstKZgxOIPYShm7owb83obI2E= Received: from DB6PR0501CA0020.eurprd05.prod.outlook.com (2603:10a6:4:8f::30) by VI1PR08MB3088.eurprd08.prod.outlook.com (2603:10a6:803:3f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Fri, 10 Jul 2020 02:29:16 +0000 Received: from DB5EUR03FT064.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::45) by DB6PR0501CA0020.outlook.office365.com (2603:10a6:4:8f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Fri, 10 Jul 2020 02:29:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (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=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT064.mail.protection.outlook.com (10.152.21.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Fri, 10 Jul 2020 02:29:16 +0000 Received: ("Tessian outbound 1c27ecaec3d6:v62"); Fri, 10 Jul 2020 02:29:16 +0000 X-CR-MTA-TID: 64aa7808 Received: from aea6d291a3a7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E673DC47-D1D3-4408-9980-DDCFD0F09413.1; Fri, 10 Jul 2020 02:29:11 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id aea6d291a3a7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 10 Jul 2020 02:29:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0/6WIY3OxZ/H6VZJbT5nHZ43WSRuLhb4XRbSvMLG93vmUMIPvFAYg+nk8h6iNYMQvF2FrAn20WEPMhbn6dr6GEI0LLWIFR+juCG/eL5XcjHyshD93Jcq+PX+cPOm7rPqtojq7uuFuo8NsbNifRpRP/hPM6l4jyAza86iDAkZbuvuMhCFtKvDEPbVHxIrS+0UEW8rAIUsuIewyIF7LwD0AH5oKEQhBk+0od++8ym3XAXHo14ybfnUCr+ck4XHgDLd5uzIkV8S5326DVIqt658EZOBCHhz6BvUE+MxhOnQsmqhf7QT9YCFzSxJpUj6qGy/2fNyKRYkV0CLtz0XwI9mQ== 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=Sd0M9mEp2GeaD7GxRvQO8S93WlpVTjs6jdVFr3/Bhfw=; b=jf+GWfGZrSvdIS+uIIqVQbdVf8HT5O/TQdbjqnWOAAn9ZHSkuaM/a8Ea6u5RVpA/rQT5YUqqGpDylo+mNjtYwxfh0+/Y1CHydWrbE/OdSZ/RYujsJNtvli+XjDqYxsh5jKaoXP/ZIGss41dUTnwXDDTcKRbYHVqEluhvjdqYVs6hXpytenXRfJbr4criof1uq+J+mxVl9VFi3Y3m/iqRrnlrTFiU9gD5IbfyOkblgwOKahdkJb4kXGC0YCfLsEMO+BpyGrjsW2gom6ige4qPmzChH1m+0Vx8JKokgOVnXBOwj70DdRUVXxcZb4lYe75Krm6dh2cm3boWb8rg46S0Ug== 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=Sd0M9mEp2GeaD7GxRvQO8S93WlpVTjs6jdVFr3/Bhfw=; b=kNQoeee92X5TOiwYOTOunvjt9U4lDkTbTimkeG3FMr+1Ewpa2LN4MsLPlj9E8Eby9xt1sL9zcBippGtQRoAik1VGLgTsWDn44nqAWNDBcS/IFvyCwrcvOkR2Ke7SUunl1gSDHr2oJ2ogN7MTqkkstKZgxOIPYShm7owb83obI2E= Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com (2603:10a6:3:50::14) by HE1PR08MB2636.eurprd08.prod.outlook.com (2603:10a6:7:39::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Fri, 10 Jul 2020 02:29:08 +0000 Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::e863:15c9:b803:6533]) by HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::e863:15c9:b803:6533%7]) with mapi id 15.20.3174.021; Fri, 10 Jul 2020 02:29:07 +0000 From: Ruifeng Wang To: Ruifeng Wang , Bruce Richardson , Vladimir Medvedkin , John McNamara , Marko Kovacevic , Ray Kinsella , Neil Horman CC: "dev@dpdk.org" , "konstantin.ananyev@intel.com" , Honnappa Nagarahalli , nd , nd Thread-Topic: [PATCH v10 1/3] lib/lpm: integrate RCU QSBR Thread-Index: AQHWVmEEjOb8hcD0zEKBBetIeBoUEKkAFqkw Date: Fri, 10 Jul 2020 02:29:07 +0000 Message-ID: References: <20190906094534.36060-1-ruifeng.wang@arm.com> <20200710022227.103963-1-ruifeng.wang@arm.com> <20200710022227.103963-2-ruifeng.wang@arm.com> In-Reply-To: <20200710022227.103963-2-ruifeng.wang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 83e6f75b-31bd-4504-bf35-816af60faff3.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.113] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1b58925c-382c-4cd6-bbdb-08d824790aec x-ms-traffictypediagnostic: HE1PR08MB2636:|VI1PR08MB3088: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:4303;OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: hR8LuPOAoTCfAAl/Whox4IhR7htcuBwi+w/2wHxmHJexh+CII2fdQXV3jzKONyAH4CiY0gU3jFkcF/KJ2bvJmTCQfF23QyXFFG1XXV7Uz94+pOJWaf8ajAEdzXjkKeF/tz9DgNfxj705CcJo/bsq8cA8WY4Nn5i34AROoWcUpFwF92aq9BRPpze/wZMA0Qp7OXHy94oVTl3HxdtSXmx7ozB3oR9vQKGn3k+7M/xzi/lrtKX89iMHsSbmmLoNWrIibMRzz8kX2igc3ZqdQSukAT4Tq3ZcnJ7mC9POGZyGaYrGv/aEBU5lpHEVzJM45qevXc2lkzXTt+1h/xPaVPgFJg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0801MB2025.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(396003)(346002)(366004)(39860400002)(376002)(2906002)(86362001)(110136005)(33656002)(186003)(66476007)(4326008)(7696005)(55016002)(6506007)(53546011)(83380400001)(26005)(5660300002)(52536014)(54906003)(8936002)(316002)(9686003)(8676002)(71200400001)(76116006)(66946007)(478600001)(64756008)(66446008)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: zL8SkxrP9fE7mzLPoVoUIKzr48KMHQ/vxdlY3m3hhC/RGace4G4r7sHHObU1p1H9tFSwQYD+aJ7T04Z2/TwDA/bW9ypE9ZJA9W7EWpppU4JJTjwOy6/kpnCd5yT10IMWdhFDLUYJO4k0t7KD8924ppL7bsrEX6YximBT+zn2xXlRhS3u5VOnpu9895Q2luVyMRSvCSg6pUocNqxEawMh1sLlDV2pjiGioW19H8THFYghUbVgqcwYWtGttBGb/al5UxHPN6cUATKbblL+hml2SLF7Bx/YhKzoapIv9FD3d6iccoh0VS8KdeW5porrcRwqpTerkEnF0Q+14HB5nrBG6uXIDMBeQH3gB1Z6Kbe6ZihWBZSFSER+QlWkTY73E85ii1JLgfFcX5+BFMkdp1nq40uxefGtomC8o43I7L/CO1HtxX6+BKobzUPTqxe0JBnyG+Of6hwRwE+RdoCa/zXqbcOHxs9oe6UWxS4Y/gv5q34= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB2636 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT064.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(396003)(376002)(346002)(39860400002)(136003)(46966005)(356005)(5660300002)(54906003)(70206006)(70586007)(7696005)(336012)(110136005)(52536014)(53546011)(47076004)(6506007)(316002)(82740400003)(82310400002)(9686003)(26005)(8936002)(83380400001)(478600001)(81166007)(86362001)(55016002)(186003)(2906002)(4326008)(8676002)(33656002); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: c2be832c-1205-40f1-3daf-08d8247905bb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mfxn6yeBi85tQVw71jcgIJo3MKHxpXBSWRcQO4LfAiistpiv/MG79MoP+a7y4REKYjPVueWwAZ3wNBFIlJAUr6D9TLmt2Y+QOK9wWhUgNDuheoT/p9SjGtKgHANCykL4fglux7UbHxrJ2Z2ZZnv8jH6/Oqs21ITPy/h+fmNbLRb6wFHFmBF4DmfXLGiVlUMYLghAxdaN74ryHOp5QKer1Bep2FaMRfh4rZSv3RXzPH64HOruqyoDYgh4HhRTjzvRC1tcF/Am1if5zsf3JQzh7wu1MQ9RyzXnBVqjqt0JIZBRRLPLHF8w9pJfuc7a/7Er2dmaPNqkBTWoBmlS8Zv87jXda4QhPknNHITSGdvju31/+6iS4lIB2mckBmVU5liUP3cze4icH5SCsc0s70IwGQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 02:29:16.5784 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b58925c-382c-4cd6-bbdb-08d824790aec 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-AuthSource: DB5EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3088 Subject: Re: [dpdk-dev] [PATCH v10 1/3] lib/lpm: integrate RCU QSBR 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" The ci/checkpatch warning is a false positive. > -----Original Message----- > From: Ruifeng Wang > Sent: Friday, July 10, 2020 10:22 AM > To: Bruce Richardson ; Vladimir Medvedkin > ; John McNamara > ; Marko Kovacevic > ; Ray Kinsella ; Neil Horman > > Cc: dev@dpdk.org; konstantin.ananyev@intel.com; Honnappa Nagarahalli > ; nd ; Ruifeng Wang > > Subject: [PATCH v10 1/3] lib/lpm: integrate RCU QSBR >=20 > Currently, the tbl8 group is freed even though the readers might be using= the > tbl8 group entries. The freed tbl8 group can be reallocated quickly. This > results in incorrect lookup results. >=20 > RCU QSBR process is integrated for safe tbl8 group reclaim. > Refer to RCU documentation to understand various aspects of integrating > RCU library into other libraries. >=20 > To avoid ABI breakage, a struct __rte_lpm is created for lpm library inte= rnal > use. This struct wraps rte_lpm that has been exposed and also includes > members that don't need to be exposed such as RCU related config. >=20 > Signed-off-by: Ruifeng Wang > Reviewed-by: Honnappa Nagarahalli > Acked-by: Ray Kinsella > Acked-by: Vladimir Medvedkin > --- > doc/guides/prog_guide/lpm_lib.rst | 32 ++++++ > lib/librte_lpm/Makefile | 2 +- > lib/librte_lpm/meson.build | 1 + > lib/librte_lpm/rte_lpm.c | 165 +++++++++++++++++++++++++---- > lib/librte_lpm/rte_lpm.h | 53 +++++++++ > lib/librte_lpm/rte_lpm_version.map | 6 ++ > 6 files changed, 237 insertions(+), 22 deletions(-) >=20