From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 680332B83 for ; Mon, 13 Aug 2018 04:50:10 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Aug 2018 19:50:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,231,1531810800"; d="scan'208";a="72260126" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 12 Aug 2018 19:50:09 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 12 Aug 2018 19:50:08 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 12 Aug 2018 19:50:08 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.226]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Mon, 13 Aug 2018 10:50:06 +0800 From: "Lu, Wenzhuo" To: Thomas Monjalon , Andrew Rybchenko , "Yigit, Ferruh" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] ethdev: fix device info getting Thread-Index: AQHUGlLisUPGzQjFW0iGQryp1Pu4oqSMRQ4AgATGUqCAAAwUgIAZiJ8AgBKIVDA= Date: Mon, 13 Aug 2018 02:50:05 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B81A090@shsmsx102.ccr.corp.intel.com> References: <1531373220-42150-1-git-send-email-wenzhuo.lu@intel.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B804CD6@shsmsx102.ccr.corp.intel.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B804D6C@shsmsx102.ccr.corp.intel.com> <1716659.kXphz3AMnz@xps> In-Reply-To: <1716659.kXphz3AMnz@xps> 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, 13 Aug 2018 02:50:11 -0000 SGkgVGhvbWFzLA0KDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogVGhv bWFzIE1vbmphbG9uIFttYWlsdG86dGhvbWFzQG1vbmphbG9uLm5ldF0NCj4gU2VudDogV2VkbmVz ZGF5LCBBdWd1c3QgMSwgMjAxOCAxMTozNyBQTQ0KPiBUbzogTHUsIFdlbnpodW8gPHdlbnpodW8u bHVAaW50ZWwuY29tPjsgQW5kcmV3IFJ5YmNoZW5rbw0KPiA8YXJ5YmNoZW5rb0Bzb2xhcmZsYXJl LmNvbT47IFlpZ2l0LCBGZXJydWggPGZlcnJ1aC55aWdpdEBpbnRlbC5jb20+DQo+IENjOiBkZXZA ZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1BBVENIIHYyXSBldGhkZXY6IGZp eCBkZXZpY2UgaW5mbyBnZXR0aW5nDQo+IA0KPiAxNi8wNy8yMDE4IDAzOjU4LCBMdSwgV2Vuemh1 bzoNCj4gPiBIaSBBbmRyZXcsDQo+ID4NCj4gPiA+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0t DQo+ID4gPiBGcm9tOiBkZXYgW21haWx0bzpkZXYtYm91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