From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 3221A1B173 for ; Fri, 13 Jul 2018 03:56:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2018 18:56:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,346,1526367600"; d="scan'208";a="54665316" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 12 Jul 2018 18:56:04 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 12 Jul 2018 18:56:03 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 12 Jul 2018 18:56:03 -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; Fri, 13 Jul 2018 09:56:01 +0800 From: "Lu, Wenzhuo" To: Andrew Rybchenko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] ethdev: fix device info getting Thread-Index: AQHUGaCNcCcyLHswpUSOfT7dPb8XRqSKtP+AgAGwmWA= Date: Fri, 13 Jul 2018 01:56:00 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B803E5E@shsmsx102.ccr.corp.intel.com> References: <1531373220-42150-1-git-send-email-wenzhuo.lu@intel.com> <0aacbeca-6bb9-2be9-76cd-2857c46b9eca@solarflare.com> In-Reply-To: <0aacbeca-6bb9-2be9-76cd-2857c46b9eca@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] 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: Fri, 13 Jul 2018 01:56:05 -0000 SGkgQW5kcmV3LA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFuZHJl dyBSeWJjaGVua28gW21haWx0bzphcnliY2hlbmtvQHNvbGFyZmxhcmUuY29tXQ0KPiBTZW50OiBU aHVyc2RheSwgSnVseSAxMiwgMjAxOCA0OjA2IFBNDQo+IFRvOiBMdSwgV2Vuemh1byA8d2Vuemh1 by5sdUBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0g W1BBVENIXSBldGhkZXY6IGZpeCBkZXZpY2UgaW5mbyBnZXR0aW5nDQo+IA0KPiBPbiAxMi4wNy4y MDE4IDA4OjI3LCBXZW56aHVvIEx1IHdyb3RlOg0KPiA+IFRoZSBkZXZpY2UgaW5mb3JtYXRpb24g Y2Fubm90IGJlIGdvdHRlbiBjb3JyZWN0bHkgYmVmb3JlIHRoZQ0KPiA+IGNvbmZpZ3VyYXRpb24g aXMgc2V0LiBCZWNhdXNlIG9uIHNvbWUgTklDcyB0aGUgaW5mb3JtYXRpb24gaGFzDQo+ID4gZGVw ZW5kZW5jZSBvbiB0aGUgY29uZmlndXJhdGlvbi4NCj4gPg0KPiA+IEZpeGVzOiAzYmU4MmY1Y2M1 ZTMgKCJldGhkZXY6IHN1cHBvcnQgUE1ELXR1bmVkIFR4L1J4IHBhcmFtZXRlcnMiKQ0KPiA+IFNp Z25lZ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