From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 0BC5F952 for ; Mon, 6 Feb 2017 04:45:47 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 05 Feb 2017 19:45:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,340,1477983600"; d="scan'208";a="930519472" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 05 Feb 2017 19:45:46 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 5 Feb 2017 19:45:46 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 5 Feb 2017 19:45:46 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Mon, 6 Feb 2017 11:45:42 +0800 From: "Lu, Wenzhuo" To: "Bie, Tiwei" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] net/ixgbe: clean up rte_eth_dev_info_get Thread-Index: AQHSgB4XaxDkA8XPOUO3uh8W921XXKFau58AgACItYD//30PAIAAiBug//98tICAAI/5AA== Date: Mon, 6 Feb 2017 03:45:41 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B561415@shsmsx102.ccr.corp.intel.com> References: <1485311962-62335-1-git-send-email-wenzhuo.lu@intel.com> <1486346972-30710-1-git-send-email-wenzhuo.lu@intel.com> <20170206023030.GA21315@debian> <6A0DE07E22DDAD4C9103DF62FEBC09093B5613B8@shsmsx102.ccr.corp.intel.com> <20170206025108.GA901@debian> <6A0DE07E22DDAD4C9103DF62FEBC09093B5613EC@shsmsx102.ccr.corp.intel.com> <20170206030821.GA10054@debian> In-Reply-To: <20170206030821.GA10054@debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: clean up rte_eth_dev_info_get 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: Mon, 06 Feb 2017 03:45:48 -0000 SGkgVGl3ZWksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmllLCBU aXdlaQ0KPiBTZW50OiBNb25kYXksIEZlYnJ1YXJ5IDYsIDIwMTcgMTE6MDggQU0NCj4gVG86IEx1 LCBXZW56aHVvDQo+IENjOiBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0g W1BBVENIIHYyXSBuZXQvaXhnYmU6IGNsZWFuIHVwIHJ0ZV9ldGhfZGV2X2luZm9fZ2V0DQo+IA0K PiBPbiBNb24sIEZlYiAwNiwgMjAxNyBhdCAxMDo1OTo0MkFNICswODAwLCBMdSwgV2Vuemh1byB3 cm90ZToNCj4gPiBIaSBUaXdlaSwNCj4gPg0KPiA+DQo+ID4gPiAtLS0tLU9yaWdpbmFsIE1lc3Nh Z2UtLS0tLQ0KPiA+ID4gRnJvbTogQmllLCBUaXdlaQ0KPiA+ID4gU2VudDogTW9uZGF5LCBGZWJy dWFyeSA2LCAyMDE3IDEwOjUxIEFNDQo+ID4gPiBUbzogTHUsIFdlbnpodW8NCj4gPiA+IENjOiBk ZXZAZHBkay5vcmcNCj4gPiA+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdI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