From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 9D24BFFA for ; Mon, 6 Feb 2017 06:17:35 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 05 Feb 2017 21:17:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,340,1477983600"; d="scan'208";a="221725490" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 05 Feb 2017 21:17:34 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 5 Feb 2017 21:17:34 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 5 Feb 2017 21:17:33 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Mon, 6 Feb 2017 13:17:31 +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/5AP//jmkAABFSyBA= Date: Mon, 6 Feb 2017 05:17:30 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B56145A@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> <6A0DE07E22DDAD4C9103DF62FEBC09093B561415@shsmsx102.ccr.corp.intel.com> <20170206045706.GA17438@debian> In-Reply-To: <20170206045706.GA17438@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 05:17:36 -0000 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBCaWUsIFRpd2VpDQo+IFNlbnQ6 IE1vbmRheSwgRmVicnVhcnkgNiwgMjAxNyAxMjo1NyBQTQ0KPiBUbzogTHUsIFdlbnpodW8NCj4g Q2M6IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0ggdjJdIG5l dC9peGdiZTogY2xlYW4gdXAgcnRlX2V0aF9kZXZfaW5mb19nZXQNCj4gDQo+IE9uIE1vbiwgRmVi IDA2LCAyMDE3IGF0IDExOjQ1OjQxQU0gKzA4MDAsIEx1LCBXZW56aHVvIHdyb3RlOg0KPiA+IEhp IFRpd2VpLA0KPiA+DQo+ID4gPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+ID4gRnJv bTogQmllLCBUaXdlaQ0KPiA+ID4gU2VudDogTW9uZGF5LCBGZWJydWFyeSA2LCAyMDE3IDExOjA4 IEFNDQo+ID4gPiBUbzogTHUsIFdlbnpodW8NCj4gPiA+I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