From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A9EBB2BD5 for ; Mon, 16 Jul 2018 03:08:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jul 2018 18:08:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,359,1526367600"; d="scan'208";a="75026913" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 15 Jul 2018 18:08:27 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Jul 2018 18:08:27 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Jul 2018 18:08:26 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.173]) with mapi id 14.03.0319.002; Mon, 16 Jul 2018 09:08:24 +0800 From: "Lu, Wenzhuo" To: Andrew Rybchenko , "dev@dpdk.org" CC: "Yigit, Ferruh" , Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v2] ethdev: fix device info getting Thread-Index: AQHUGlLisUPGzQjFW0iGQryp1Pu4oqSMRQ4AgATGUqA= Date: Mon, 16 Jul 2018 01:08:24 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B804CD6@shsmsx102.ccr.corp.intel.com> References: <1531373220-42150-1-git-send-email-wenzhuo.lu@intel.com> <1531449770-107772-1-git-send-email-wenzhuo.lu@intel.com> <25492396-a8ea-9fb8-553b-87d64a84feda@solarflare.com> In-Reply-To: <25492396-a8ea-9fb8-553b-87d64a84feda@solarflare.com> 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] ethdev: fix device info getting 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, 16 Jul 2018 01:08:39 -0000 SGkgQW5kcmV3LA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFuZHJl dyBSeWJjaGVua28gW21haWx0bzphcnliY2hlbmtvQHNvbGFyZmxhcmUuY29tXQ0KPiBTZW50OiBG cmlkYXksIEp1bHkgMTMsIDIwMTggNDowMyBQTQ0KPiBUbzogTHUsIFdlbnpodW8gPHdlbnpodW8u bHVAaW50ZWwuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiBZaWdpdCwgRmVycnVoIDxmZXJydWgu eWlnaXRAaW50ZWwuY29tPjsgVGhvbWFzIE1vbmphbG9uDQo+IDx0aG9tYXNAbW9uamFsb24ubmV0 Pg0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0ggdjJdIGV0aGRldjogZml4IGRldmlj ZSBpbmZvIGdldHRpbmcNCj4gDQo+IEhpLCBXZW56aHVvLA0KPiANCj4gSSdtIHNvcnJ5LCBidXQg SSBoYXZlIG1vcmUgZXZlbiBoYXJkZXIgcXVlc3Rpb25zIHRoYW4gdGhlIHByZXZpb3VzIG9uZS4N Cj4gVGhpcyBxdWVzdGlvbnMgYXJlIHJhdGhlciBnZW5lcmljIGFuZCBtYWlubHkgdG8gZXRoZGV2 IG1haW50YWluZXJzLg0KPiANCj4gT24gMTMuMDcuMjAx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