From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id D67EE56A1 for ; Wed, 12 Jul 2017 09:25:22 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Wed, 12 Jul 2017 09:25:21 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC359EB28A@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] [PATCH v2 6/8] mbuf: use 2 bytes for port and nbsegments Thread-Index: AQHS+lmfN6a5DOnVykyqN6Owp/VeMaJPS5cAgAB2qPA= References: <1488966121-22853-1-git-send-email-olivier.matz@6wind.com> <130C769A-180F-4C74-A974-EA51E7FAD1EC@intel.com> <98CBD80474FA8B44BF855DF32C47DC359EB27E@smartserver.smartshare.dk> <53564501.0VCaTE2lYi@xps> <98CBD80474FA8B44BF855DF32C47DC359EB285@smartserver.smartshare.dk> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Wiles, Keith" Cc: "Thomas Monjalon" , "DPDK" , "Olivier Matz" , "Wang, Zhihong" , "Yuanhan Liu" , "Ananyev, Konstantin" , "Richardson, Bruce" , "Chilikin, Andrey" , "Jan Blunck" , =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= , , Subject: Re: [dpdk-dev] [PATCH v2 6/8] mbuf: use 2 bytes for port and nbsegments X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2017 07:25:23 -0000 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXYgW21haWx0bzpkZX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