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 2089FA051A; Fri, 17 Jan 2020 17:42:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 047D62BAE; Fri, 17 Jan 2020 17:42:53 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10066.outbound.protection.outlook.com [40.107.1.66]) by dpdk.org (Postfix) with ESMTP id 0C40D2BAA for ; Fri, 17 Jan 2020 17:42:51 +0100 (CET) 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=1/ddrmMRi129YPI0KCDBJ7L0FOkXPl2Et8PHl2+5ATU=; b=tJnK6U/pRjSlV/rMQhQntIPUBNinD2HDbGjRpu5JEW5Zj5eI/GRl+R6ojz8Q+c4IuJREcCqbugep9Gopfpyz0q20SdYYHKVPM1rAW4kcpYtRTbKemGaaltL9Ulr/hD3p+OQ1lcaFgGSXXoypQ2wIffK86c3OYtjJHAn933r+9IY= Received: from VI1PR08CA0091.eurprd08.prod.outlook.com (2603:10a6:800:d3::17) by AM6PR08MB4327.eurprd08.prod.outlook.com (2603:10a6:20b:ba::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.10; Fri, 17 Jan 2020 16:42:49 +0000 Received: from VE1EUR03FT049.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::201) by VI1PR08CA0091.outlook.office365.com (2603:10a6:800:d3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.20 via Frontend Transport; Fri, 17 Jan 2020 16:42:49 +0000 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 VE1EUR03FT049.mail.protection.outlook.com (10.152.19.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 17 Jan 2020 16:42:49 +0000 Received: ("Tessian outbound ba41a0333779:v40"); Fri, 17 Jan 2020 16:42:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ad2d1aa280d16a17 X-CR-MTA-TID: 64aa7808 Received: from 402f3162718d.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C1CA59BD-2EDF-48BC-9B31-3A063702AA89.1; Fri, 17 Jan 2020 16:42:43 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 402f3162718d.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Jan 2020 16:42:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJuWzeALx6btM4a6JPA3r/r66bZ8tAYKEqDsiPXEUJTfyEFmM8iidQiRXgWRRYknbTrquWIQ2bt+Z/BaRaS4ZQ1cfxpPSj3yMQnW4w+n314V8jnS48tQewfWTzhYV44yRVIIzO91gVagOtXAJRM2rOGzgBUEx1MfmbqhPqGpBYfECZRmtGWCPEau5kFGX6KzwhnnlGVfZAzFAmspylYJXSyYCBaS0HObRel34+0SPctIdIHT26ZyxsLlPU6k8G01kIo0TDii9Boshfiuk9P+PI6nIyp+sVMEkgzc+lcw5OKJEMevQtSC4C/UvxlEGcr8hzBi7gfEy/XNoGcwK/oOjg== 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=sSruFT1GP3y4UfH5PBNo2Lfa8AP4n2VHGEdHiM7o0bY=; b=JHBlWKvWlb6QcjXkXJF0ChnCJDhsZgKTLwwbSESgbn/Eg3ZvEfg3E8u+Os89GafIkftGyXs7h+zsjD1OwPlm3dImC4eCXGQ2VBysLGB0pSYBhfIeRqgUfEVHxKI1mt2R7FIfswf9yV+WG6il2y1PgjwfzcwDUTM3NxMbbL8H8IcsAtmtkUY9BHPq5FIYEEYVH3GN5+0jwxuJNtNTKFB1UfFkrxiVVlZCjhNvPMbxUOENySexAyINqhY7vZiDwEE6Hv6nbXOIZaY4D8Oc/Rv6fFarqzICks7lXRUtPu/jzLhPmkflpxvpDSdRgSYogL0Nnh2jbZoghB+uI0Zzl6Ui0w== 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=sSruFT1GP3y4UfH5PBNo2Lfa8AP4n2VHGEdHiM7o0bY=; b=YOnzReMPtnfXs9SYtd68tPcNmmq0kPP9a7ffWEaIovfr/jt6Xg7C/Jlw1wrj3hSfm1qmXFZleiCemKDQ2PxAj+IpJfkib362oZs/zqfHTte/5Yr+LQXfWcn7uq9wfv4eNOk4efvGe2pvojXGBLIZ99G8DpWGCoPLF2b/lKc2uDs= Received: from VI1PR08MB3390.eurprd08.prod.outlook.com (20.177.59.91) by VI1PR08MB3919.eurprd08.prod.outlook.com (20.178.81.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19; Fri, 17 Jan 2020 16:42:40 +0000 Received: from VI1PR08MB3390.eurprd08.prod.outlook.com ([fe80::ac24:4d7a:e3fd:9fb0]) by VI1PR08MB3390.eurprd08.prod.outlook.com ([fe80::ac24:4d7a:e3fd:9fb0%5]) with mapi id 15.20.2644.015; Fri, 17 Jan 2020 16:42:40 +0000 From: Dharmik Thakkar To: "thomas@monjalon.net" CC: "Wang, Yipeng1" , "dev@dpdk.org" , "Gobriel, Sameh" , "Richardson, Bruce" , Honnappa Nagarahalli Thread-Topic: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free Thread-Index: AQHVoJgcIkuiiEN48UGC+O1kZ9FbP6ecQQ8AgAAzsQCAAAI9gIAAC5uAgAADFACAAAVbAIBS3guA Date: Fri, 17 Jan 2020 16:42:39 +0000 Message-ID: <55155687-8C44-4694-81D7-C9A06ECD25C9@arm.com> References: <20191121181759.11401-1-dharmik.thakkar@arm.com> <9842802.2mR3ADNnM5@xps> <1923530.xkvgYvHMKK@xps> In-Reply-To: <1923530.xkvgYvHMKK@xps> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Dharmik.Thakkar@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 731fe069-2120-4971-b6ae-08d79b6c49d2 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:|VI1PR08MB3919:|AM6PR08MB4327: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:6108;OLM:10000; x-forefront-prvs: 0285201563 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(346002)(366004)(39860400002)(376002)(189003)(199004)(36756003)(6512007)(26005)(6916009)(316002)(4326008)(86362001)(6506007)(2616005)(33656002)(5660300002)(66556008)(66446008)(71200400001)(91956017)(81156014)(8676002)(81166006)(478600001)(76116006)(66946007)(54906003)(186003)(66476007)(64756008)(2906002)(8936002)(6486002)(53546011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3919; H:VI1PR08MB3390.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-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: PFDdxB+Tn+d/1LyP7llPHhxXorPJq1ExWSCCDTKudb/81/ZwI4G9RPkameJ464HjN9SoFQ05BlK7t0WsNk/xnLH34V47F5srcaKt89yWeTBrKmz9L20BCXDdUc+/3G07swhjsooTEaSsD19ZnDgsp02DtJ9k5kcdnY/xAfMhQcOREEOI7RJX/5jv3LTLNz3CPG+jnrkFqYy48cNDtVYaaNIdxPo3pxflo3yCjtc3QcZpi0Ftp9yDf5SO/vpVvu46Zh3IiTLf9aTzMEWzZVIv6dv5sEY6IZXjmgT2ywo60nZPuBstiZ78g1u/RBAQdQrTDluTEXHDryFuXH+98gK/vP9+9wuYqRoxFcnbzhZXOaNaVB8bV8BUP2wXYlqzCOp777uAFvKh3/yLFgOxaVHumS1wLjLnsQ8F2TnVPWzsi+UQpQf7f2zgGLP7nSFyzx/w Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3919 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Dharmik.Thakkar@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT049.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)(39860400002)(396003)(136003)(376002)(346002)(199004)(189003)(6862004)(336012)(81156014)(36756003)(8676002)(33656002)(26826003)(81166006)(86362001)(186003)(478600001)(8936002)(2906002)(26005)(5660300002)(70586007)(356004)(6512007)(70206006)(316002)(6486002)(2616005)(54906003)(36906005)(53546011)(6506007)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB4327; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; 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: 12862545-5547-4f8f-5ae6-08d79b6c447e X-Forefront-PRVS: 0285201563 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5S+lVmGEmzFto79oroFCqEOapHrNIBGADFPcq43JqcUfgpoisZ9CQTkZae+D1+6H+mZw1sl66/83/rl3k0uFKhVKkFZyuu1rvbtEoEpI3O7I0GDw/uS2cq13cQM3kx9Js70jwurEY10n9ZiWO+70CaGXdAgiGq2nrQMbDECT9s0QAYF9wpreo3UIQWY6lyQ+PmcqJ/SH7wbUVOTL6K0sFfmJWRU+hbjCfGST9/84MVl1lF+Fryoa/9xvjsA5+oSeTe39/24CFGOf8C1AvBUKYqiv2efiMEAD6AXNxd5HvqNqpTGiTYMUkrMbaEyA/qbysryII7Mls7P2ObehDywFnjXP0AdwqYKKHEaijKTG3qDlhmPYsIxgQ9dk8a4reh9VJzDj+HSJKedVxFLqPdLPPbzBldDl2bq6XVUkcj93XmckwzM8V2xYXHApXo36vFTm X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2020 16:42:49.2379 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 731fe069-2120-4971-b6ae-08d79b6c49d2 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: AM6PR08MB4327 Subject: Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free 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" SGkgVGhvbWFzLA0KQ2FuIHRoaXMgcGF0Y2ggYmUgbWVyZ2VkPw0KDQo+IE9uIE5vdiAyNSwgMjAx OSwgYXQgNToxNCBQTSwgVGhvbWFzIE1vbmphbG9uIDx0aG9tYXNAbW9uamFsb24ubmV0PiB3cm90 ZToNCj4NCj4gMjUvMTEvMjAxOSAyMzo1NSwgRGhhcm1payBUaGFra2FyOg0KPj4NCj4+PiBPbiBO b3YgMjUsIDIwMTksIGF0IDQ6NDQgUE0sIFRob21hcyBNb25qYWxvbiA8dGhvbWFzQG1vbmphbG9u Lm5ldD4gd3JvdGU6DQo+Pj4NCj4+PiAyNS8xMS8yMDE5IDIzOjAyLCBXYW5nLCBZaXBlbmcxOg0K Pj4+PiBGcm9tOiBUaG9tYXMgTW9uamFsb24gW21haWx0bzp0aG9tYXNAbW9uamFsb24ubmV0XQ0K Pj4+Pj4gMjUvMTEvMjAxOSAxOTo0OSwgV2FuZywgWWlwZW5nMToNCj4+Pj4+PiBGcm9tOiBEaGFy bWlrIFRoYWtrYXIgW21haWx0bzpkaGFybWlrLnRoYWtrYXJAYXJtLmNvbV0NCj4+Pj4+Pj4NCj4+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