From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id 56CC7B0AD for ; Wed, 11 Jun 2014 17:16:32 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 11 Jun 2014 08:16:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,458,1400050800"; d="scan'208";a="444319478" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by azsmga001.ch.intel.com with ESMTP; 11 Jun 2014 08:16:14 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.58]) by IRSMSX104.ger.corp.intel.com ([169.254.5.136]) with mapi id 14.03.0123.003; Wed, 11 Jun 2014 16:16:14 +0100 From: "Richardson, Bruce" To: Helmut Sim , Venkat Thummala Thread-Topic: [dpdk-dev] using hash table in a MP environment Thread-Index: AQHPhIJrA0xrBFgHVkGbpU9VN3m445tqJleAgAAODgCAARxmAIAAs0Sw Date: Wed, 11 Jun 2014 15:16:14 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B01AA34E87@IRSMSX103.ger.corp.intel.com> References: <20140610113521.GD6275@hmsreliant.think-freely.org> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] using hash table in a MP environment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 15:16:33 -0000 VGhlIHRyb3VibGUgaXM6DQphKSBob3cgZG8gd2UgZ3VhcmFudGVlIHRoYXQgdGhlIGZ1bmN0aW9u IGluIHF1ZXN0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