From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 1A6809E7 for ; Wed, 10 Feb 2016 18:24:16 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 10 Feb 2016 09:24:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,426,1449561600"; d="scan'208";a="881381725" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 10 Feb 2016 09:22:13 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.123]) by FMSMSX106.amr.corp.intel.com ([169.254.5.208]) with mapi id 14.03.0248.002; Wed, 10 Feb 2016 09:22:13 -0800 From: "Wiles, Keith" To: Olivier MATZ , "dev@dpdk.org" Thread-Topic: [PATCH v2] mempool: reduce rte_mempool structure size Thread-Index: AQHRZCR38CzAR1Bn7kCqjUF5fskhU58lqGSA Date: Wed, 10 Feb 2016 17:22:13 +0000 Message-ID: <04162FDF-F914-432D-BC54-5D9EC7AB515A@intel.com> References: <1454454177-26743-1-git-send-email-keith.wiles@intel.com> <1455039006-86816-1-git-send-email-keith.wiles@intel.com> <56BB6C77.8080808@6wind.com> In-Reply-To: <56BB6C77.8080808@6wind.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: <10506BEA9C4E75498028BED8578F0A28@intel.com> 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 17:24:18 -0000 PkhpIEtlaXRoL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