From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id F14D8A0096 for ; Fri, 15 Mar 2019 01:31:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED2A5324D; Fri, 15 Mar 2019 01:31:56 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50068.outbound.protection.outlook.com [40.107.5.68]) by dpdk.org (Postfix) with ESMTP id 6D7962C28 for ; Fri, 15 Mar 2019 01:31:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L65tOoihNjG1hx2RBGxS6oCZSTX70/WvblnloDVZy98=; b=gfIjF7nPdg138V/dCDRd0k13xwx4nEO8V8175b0A5S6T6GwJeWBCVw2YxS9dwqCyViF0nuPhaqU3AkGivzmrTxxkljLcWN9Fk8gVTr8mXgLO01re6mkcPLUl2sgh6CcDwh1I/PClrBEVGkhnwtqOgjGKgT2wLu//9k55Yajtf1Y= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6PR08MB4422.eurprd08.prod.outlook.com (20.179.7.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Fri, 15 Mar 2019 00:31:54 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::4d90:78f1:e670:14d5]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::4d90:78f1:e670:14d5%3]) with mapi id 15.20.1686.021; Fri, 15 Mar 2019 00:31:54 +0000 From: Honnappa Nagarahalli To: Dharmik Thakkar , "Wang, Yipeng1" CC: "Gobriel, Sameh" , "Richardson, Bruce" , "De Lara Guarch, Pablo" , "Mcnamara, John" , "Kovacevic, Marko" , "dev@dpdk.org" , "Tai, Charlie" , nd , nd Thread-Topic: [RFC 1/2] hash: add lock free support for extendable bucket Thread-Index: AQHU0I5AM81Un2IGzU6mnfOek3E+qqYAeyMAgABJ+QCACtsNgA== Date: Fri, 15 Mar 2019 00:31:54 +0000 Message-ID: References: <20190302002334.7911-1-dharmik.thakkar@arm.com> <20190302002334.7911-2-dharmik.thakkar@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 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: 3a7d51f1-c00a-4db4-1958-08d6a8dd9fc3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB4422; x-ms-traffictypediagnostic: AM6PR08MB4422: nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 09778E995A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(366004)(396003)(346002)(39860400002)(199004)(189003)(74316002)(305945005)(55016002)(14444005)(7696005)(256004)(25786009)(72206003)(7736002)(6246003)(2906002)(14454004)(99286004)(6436002)(53936002)(76176011)(11346002)(446003)(97736004)(102836004)(5660300002)(106356001)(52536014)(26005)(186003)(105586002)(6116002)(3846002)(71190400001)(68736007)(93886005)(71200400001)(8936002)(66066001)(9686003)(81166006)(81156014)(316002)(229853002)(8676002)(478600001)(486006)(6506007)(110136005)(86362001)(4326008)(54906003)(476003)(33656002)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB4422; H:AM6PR08MB3672.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: FPZ9fplKbeUVfezQlCXcvL4UcAZeR8bwqCbNtTmlVGFwEsA+fGFaXc+NxL0y6FIsx+Xqkw7TVixdreKESGPEO7GeTbSe8owICHNWeDokom8LYUJD9JA6hmsu9FjOl38fCCaHHuIhZsUuOkeWSW5WNI/7IzrRnPeAWQWmchVe97xkEu97TbiIDTM26cW1CcY0RQqhFDCOeTG4dVHGrNlfTSSYPsrxvTyC5+40LN3d1w+FcXXV06KJk51hlmlgCC8VEfgXowY1xTvBmUYc/HbgNseFlXWx9uSg7k9On0LQbqPw9+6MncpKzvCasCzS4V5lSGlJN/ultjszvkwW0qxbAN2K0/yUtqu1m7D4by44thB957ojJpJa7ZOu/KLW+m6TZUWxCihb1BSYEjzh+pCAPSjoTcfvSz2GhoIl0JvscaA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a7d51f1-c00a-4db4-1958-08d6a8dd9fc3 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 00:31:54.0395 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4422 Subject: Re: [dpdk-dev] [RFC 1/2] hash: add lock free support for extendable bucket 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" Message-ID: <20190315003154.LHJc_V3PgFsT4iK4ORqY8cxZpXGvj1JzbLw5PupC5jk@z> PHNuaXA+DQoNCj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