From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 255D52C8 for ; Tue, 24 Apr 2018 13:03:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 04:03:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,322,1520924400"; d="scan'208";a="35735690" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by orsmga007.jf.intel.com with ESMTP; 24 Apr 2018 04:03:43 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.164]) by IRSMSX108.ger.corp.intel.com ([169.254.11.155]) with mapi id 14.03.0319.002; Tue, 24 Apr 2018 12:03:43 +0100 From: "Ananyev, Konstantin" To: Honnappa Nagarahalli , Brijesh Singh , "dev@dpdk.org" CC: nd Thread-Topic: [dpdk-dev] rte_hash thread safe Thread-Index: AQHT0hSTn9DR0NxfJkeWy6wwuqX9caQOwP+AgACwmACAAGEz0A== Date: Tue, 24 Apr 2018 11:03:42 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258AEA5206E@IRSMSX102.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWY2YzEwYjItZmVkYS00ZDBhLWFmMDQtZDhmODU0Y2E3OGQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlNQK3oySjE3XC9pSjN1SGMxZG9oS2tNZGcrT0xWdTg0T05JY2hLT2M2RDdRPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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 11:03:50 -0000 DQoNCj4gDQo+IEEgZ2VudGxlIHJlbWluZGVyLA0KPiANCj4gSSBhbSBjdXJpb3VzIHRvIGtub3cg aWYvaG93IHJ0ZV9oYXNoIGlzIHRocmVhZCBzYWZlIGZvciBsb29rdXBzLkl0IGlzIG5vdCBvYnZp b3VzIHRvIG1lIGhvdyBmb2xsb3dpbmcgY29kZSBpcyB0aHJlYWQgc2FmZToNCg0KSSBkb24ndCB0 aGluayBpdCBpcyByZWFsbHkgdGhyZWFkLXNhZmU6IHlvdSBjYW4ndCBkbyBsb29rdXAgYW5kIGFk ZC9kZWxldGUgc2ltdWx0YW5lb3VzbHkgZnJvbSBkaWZmZXJlbnQgdGhyZWFkcy4NClNvbWUgZXh0 cmEgc3luY2hyb25pemF0aW9uIHdvdWxkIGJlIG5lZWRlZC4NCktvbnN0YW50aW4NCg0KPiANCj4g X3J0ZV9oYXNoX2xvb2t1cF93aXRoX2hhc2goY29uc3Qgc3RydWN0IHJ0ZV9oYXNoICpoLCBjb25z dCB2b2lkICprZXksDQo+IA0KPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgaGFzaF9zaWdfdCBzaWcsIHZvaWQgKipkYXRhKQ0KPiANCj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