From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0081.outbound.protection.outlook.com [104.47.0.81]) by dpdk.org (Postfix) with ESMTP id EDEE21C01 for ; Tue, 24 Apr 2018 08:12:45 +0200 (CEST) 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; bh=ZZMcLxgMhRBF8eiuAqgpZBMzNp5F9HcSaND9E7n64Kg=; b=ahonnCHXiQWZkLXL1TpwykU+gaeKxoJP5ns0ey5eyorzxnOucw2jC9xpiuiTOqgL/sDHhtgLryQ34zSINAeNUAiUtCseSPutrXcZ3Rak//n+Y72Q6lGXDhjNA0ezaer9lfTTKZmN37xvMjjSlZmqqkjS0w/FRdoLJdbf2HsYoiQ= Received: from HE1PR0801MB1930.eurprd08.prod.outlook.com (10.168.94.136) by HE1PR0801MB1897.eurprd08.prod.outlook.com (10.168.94.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Tue, 24 Apr 2018 06:12:44 +0000 Received: from HE1PR0801MB1930.eurprd08.prod.outlook.com ([fe80::7d79:f99a:a7cc:c0dd]) by HE1PR0801MB1930.eurprd08.prod.outlook.com ([fe80::7d79:f99a:a7cc:c0dd%14]) with mapi id 15.20.0696.019; Tue, 24 Apr 2018 06:12:44 +0000 From: Honnappa Nagarahalli To: Brijesh Singh , "dev@dpdk.org" CC: nd Thread-Topic: [dpdk-dev] rte_hash thread safe Thread-Index: AQHT2zr7wp/FwyVW706zPSZMY3UEG6QPaSLg Date: Tue, 24 Apr 2018 06:12:44 +0000 Message-ID: References: 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-microsoft-exchange-diagnostics: 1; HE1PR0801MB1897; 7:1/2+AmhI6MfCSNE6an+A+Ild2WEKKnQ5rmRLWF/ULskgci97YPkQUYbBYIDijAmFPiIh2eL/WL7O3tFAi4nFmzImCRW6rQZjQfJlRdKq9zMQ6HQCHYtRkEiSVzuaIhOvMpoHsSHvJG/FGFYEGvWWfw5k9kqQbl+3MxupKLBi+5bW50a1cT/tmrwwjD10tHNhCQcSkoWD6ObWCdXPA9smYKHA3xDQ6/9426soO8mDoe9DqylP5RhiSxS/Ng82q+Np x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0801MB1897; x-ms-traffictypediagnostic: HE1PR0801MB1897: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231232)(944501410)(52105095)(6055026)(6041310)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:HE1PR0801MB1897; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1897; x-forefront-prvs: 0652EA5565 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(39860400002)(346002)(39380400002)(316002)(53936002)(9686003)(110136005)(3846002)(8676002)(229853002)(39060400002)(55016002)(5250100002)(5660300001)(72206003)(2906002)(8936002)(81166006)(3660700001)(25786009)(7736002)(478600001)(6116002)(2501003)(74316002)(14454004)(3280700002)(305945005)(476003)(7696005)(6506007)(446003)(33656002)(76176011)(86362001)(59450400001)(53546011)(11346002)(6246003)(66066001)(2900100001)(99286004)(102836004)(6436002)(26005)(186003)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0801MB1897; H:HE1PR0801MB1930.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; MLV:ovrnspm; PTR:InfoNoRecords; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 3MkWEEl8vsYfgE2jlQ3x7tzhNpuHAXbKQ0zZR1r8PsGEP9q7ZPyQfCnaxxXzrmH2aPcQejAh2gz4D4Wi51/xQVAIoUJ4xFGlmBKr+OPFS8StxZRBhOYbxeR3RxjYAKRdhJhxU8kon+puOKrwkyLLWkW59S4Svimmi3a+EA53gHmEi7u25AlkqB8LjikYu10u spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 86adb6d6-ef65-49c4-04c5-08d5a9aa64c1 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86adb6d6-ef65-49c4-04c5-08d5a9aa64c1 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2018 06:12:44.1608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1897 Subject: Re: [dpdk-dev] rte_hash thread safe 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: , X-List-Received-Date: Tue, 24 Apr 2018 06:12:46 -0000 DQpBIGdlbnRsZSByZW1pbmRlciwNCg0KSSBhbSBjdXJpb3VzIHRvIGtub3cgaWYvaG93IHJ0ZV9o YXNoIGlzIHRocmVhZCBzYWZlIGZvciBsb29rd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