From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B4B4F56A9 for ; Wed, 10 Feb 2016 19:01:35 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 10 Feb 2016 10:01:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,426,1449561600"; d="scan'208";a="909426498" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 10 Feb 2016 10:01:34 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.123]) by fmsmsx107.amr.corp.intel.com ([169.254.6.64]) with mapi id 14.03.0248.002; Wed, 10 Feb 2016 10:01:30 -0800 From: "Wiles, Keith" To: Olivier MATZ , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] mempool: reduce rte_mempool structure size Thread-Index: AQHRZC0QeLYT+PxwU0CAZKZWuvwr/A== Date: Wed, 10 Feb 2016 18:01:29 +0000 Message-ID: <069176D7-5C83-42E0-B3EC-3119469592BA@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.75.40] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] mempool: reduce rte_mempool structure size 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, 10 Feb 2016 18:01:36 -0000 Pj5IaSBLZWl0aCwNCj4+DQo+PlRoYW5rIHlvdSBmb3IgYWRkaW5nIHRoZSBSVEVfTkVYVF9BQkku IEkgdGhpbmsgdGhpcyBpcyB0aGUgd2F5DQo+PmRlc2NyaWJlZCBpbiB0aGUgcHJ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