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 17FC556A9 for ; Wed, 10 Feb 2016 19:35:43 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 10 Feb 2016 10:35:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,426,1449561600"; d="scan'208";a="650221756" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2016 10:35:41 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Feb 2016 10:35:38 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.123]) by fmsmsx156.amr.corp.intel.com ([169.254.13.72]) with mapi id 14.03.0248.002; Wed, 10 Feb 2016 10:35:38 -0800 From: "Wiles, Keith" To: Olivier MATZ , "dev@dpdk.org" Thread-Topic: [PATCH v2] mempool: reduce rte_mempool structure size Thread-Index: AQHRZCR38CzAR1Bn7kCqjUF5fskhU58lvOmA Date: Wed, 10 Feb 2016 18:35:38 +0000 Message-ID: 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: 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-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