From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id F212623A for ; Mon, 16 Jul 2018 03:59:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jul 2018 18:59:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,359,1526367600"; d="scan'208";a="67193516" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 15 Jul 2018 18:59:00 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Jul 2018 18:58:48 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Jul 2018 18:58:48 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.17]) with mapi id 14.03.0319.002; Mon, 16 Jul 2018 09:58:16 +0800 From: "Lu, Wenzhuo" To: "Lu, Wenzhuo" , Andrew Rybchenko , "dev@dpdk.org" CC: "Yigit, Ferruh" , Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v2] ethdev: fix device info getting Thread-Index: AQHUGlLisUPGzQjFW0iGQryp1Pu4oqSMRQ4AgATGUqCAAAwUgA== Date: Mon, 16 Jul 2018 01:58:15 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B804D6C@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> <6A0DE07E22DDAD4C9103DF62FEBC09093B804CD6@shsmsx102.ccr.corp.intel.com> In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09093B804CD6@shsmsx102.ccr.corp.intel.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:59:12 -0000 SGkgQW5kcmV3LA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGRldiBb bWFpbHRvOmRldi1ib3VuY2VzQGRwZGsub3JnXSBPbiBCZWhhbGYgT2YgTHUsIFdlbnpodW8NCj4g U2VudDogTW9uZGF5LCBKdWx5IDE2LCAyMDE4IDk6MDggQU0NCj4gVG86IEFuZHJldyBSeWJjaGVu a28gPGFyeWJjaGVua29Ac29sYXJmbGFyZS5jb20+OyBkZXZAZHBkay5vcmcNCj4gQ2M6IFlpZ2l0 LCBGZXJydWggPGZlcnJ1aC55aWdpdEBpbnRlbC5jb20+OyBUaG9tYXMgTW9uamFsb24NCj4gPHRo b21hc0Btb25qYWxvbi5uZXQ+DQo+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2Ml0g ZXRoZGV2OiBmaXggZGV2aWNlIGluZm8gZ2V0dGluZw0KPiANCj4gSGkgQW5kcmV3LA0KPiANCj4g PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+IEZyb206IEFuZHJldyBSeWJjaGVua28g W21haWx0bzphcnliY2hlbmtvQHNvb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