From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A5D134A65 for ; Thu, 14 Apr 2016 16:18:38 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 14 Apr 2016 07:18:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,485,1455004800"; d="scan'208";a="932429722" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 14 Apr 2016 07:18:28 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 14 Apr 2016 07:18:28 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.211]) by fmsmsx101.amr.corp.intel.com ([169.254.1.162]) with mapi id 14.03.0248.002; Thu, 14 Apr 2016 07:18:28 -0700 From: "Wiles, Keith" To: Olivier Matz , "dev@dpdk.org" CC: "Richardson, Bruce" , "stephen@networkplumber.org" Thread-Topic: [dpdk-dev] [PATCH 02/36] mempool: replace elt_size by total_elt_size Thread-Index: AQHRljdd0HhRUYUZZUSTn9szxQtJ65+Jph0A Date: Thu, 14 Apr 2016 14:18:27 +0000 Message-ID: <9FAA3D0F-37B6-4C38-A0DD-73B34A653FF7@intel.com> References: <1457540381-20274-1-git-send-email-olivier.matz@6wind.com> <1460629199-32489-1-git-send-email-olivier.matz@6wind.com> <1460629199-32489-3-git-send-email-olivier.matz@6wind.com> In-Reply-To: <1460629199-32489-3-git-send-email-olivier.matz@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.81.124] Content-Type: text/plain; charset="utf-8" Content-ID: <7BF271D6DA005C4388B9B368B6454FBF@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 02/36] mempool: replace elt_size by total_elt_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: Thu, 14 Apr 2016 14:18:39 -0000 PkluIHNvbWUgbWVtcG9vbCBmdW5jdGlvbnMsIHdlIHVzZSB0aGUgc2l6ZSBvZiB0aGUgZWxlbWVu dHMgYXMgYXJndW1lbnRzIG9yIGluDQo+dmFyaWFibGVzLiBUaGVyZSBpcyBhIGNvbmZ1c2lvbiBi ZXR3ZWVuIHRoZSBzaXplIGluY2x1ZGluZyBvciBub3QgaW5jbHVkaW5nDQo+dGhlIGhlYWRlciBh bmQgdHJhaWxlci4NCj4NCj5UbyBhdm9pZCB0aGlzIGNvbmZ1c2lvbjoNCj4tIHVwZGF0ZSB0aGUg QVBJIGRvY3VtZW50YXRpb24NCj4tIHJlbmFtZSB0aGUgdmFyaWFibGVzIGFuZCBhcmd1bWVudCBu YW1lcyBhcyAiZWx0X3NpemUiIHdoZW4gdGhlIHNpemUgZG9lcyBub3QNCj4gIGluY2x1ZGUgdGhl IGhlYWRlciBhbmQgdHJhaWxlciwgb3IgZWxzZSBhcyAidG90YWxfZWx0X3NpemUiLg0KPg0KPlNp Z25lZC1vZmYtYnk6IE9saXZpZXIgTWF0eiA8b2xpdmllci5tYXR6QDZ3aW5kLmNvbT4NCg0KQWNr ZWQgYnk6IEtlaXRoIFdpbGVzIDxrZWl0aC53aWxlc0BpbnRlbC5jb20+DQo+LS0tDQo+IGxpYi9s aWJydGVfbWVtcG9vbC9ydGVfbWVtcG9vbC5jIHwgMjEgKysrKysrKysrKystLS0tLS0tLS0tDQo+ IGxpYi9saWJydGVfbWVtcG9vbC9ydGVfbWVtcG9vbC5oIHwgMTkgKysrKysrKysrKystLS0tLS0t LQ0KPiAyIGZpbGVzIGNoYW5nZWQsIDIyIGluc2VydGlvbnMoK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