From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 71AD41AEF4 for ; Mon, 9 Oct 2017 02:56:42 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP; 08 Oct 2017 17:56:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,497,1500966000"; d="scan'208";a="1023033431" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 08 Oct 2017 17:56:41 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 8 Oct 2017 17:56:41 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 8 Oct 2017 17:56:40 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Mon, 9 Oct 2017 08:56:38 +0800 From: "Tan, Jianfeng" To: Jan Blunck CC: dev , "Richardson, Bruce" , "Ananyev, Konstantin" , "De Lara Guarch, Pablo" , Thomas Monjalon , "yliu@fridaylinux.org" , Maxime Coquelin , Tetsuya Mukawa , "Yigit, Ferruh" Thread-Topic: [dpdk-dev] [PATCH v2 09/12] ethdev: support attach vdev in secondary process Thread-Index: AQHTOGFk0L154gnDjE26kRLdfcgP4aLU1SCAgAXqGmA= Date: Mon, 9 Oct 2017 00:56:38 +0000 Message-ID: References: <1503654052-84730-1-git-send-email-jianfeng.tan@intel.com> <1506606959-76230-1-git-send-email-jianfeng.tan@intel.com> <1506606959-76230-10-git-send-email-jianfeng.tan@intel.com> In-Reply-To: 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 09/12] ethdev: support attach vdev in secondary process 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, 09 Oct 2017 00:56:44 -0000 SGkgSmFuLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGpibHVuY2tA Z21haWwuY29tIFttYWlsdG86amJsdW5ja0BnbWFpbC5jb21dIE9uIEJlaGFsZiBPZiBKYW4NCj4g Qmx1bmNrDQo+IFNlbnQ6IFRodXJzZGF5LCBPY3RvYmVyIDUsIDIwMTcgMTA6MjcgUE0NCj4gVG86 IFRhbiwgSmlhbmZlbmcNCj4gQ2M6IGRldjsgUmljaGFyZHNvbiwgQnJ1Y2U7IEFuYW55ZXYsIEtv bnN0YW50aW47IERlIExhcmEgR3VhcmNoLCBQYWJsbzsNCj4gVGhvbWFzIE1vbmphbG9uOyB5bGl1 QGZyaWRheWxpbnV4Lm9yZzsgTWF4aW1lIENvcXVlbGluOyBUZXRzdXlhIE11a2F3YTsNCj4gWWln aXQsIEZlcnJ1aA0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0ggdjIgMDkvMTJdIGV0 aGRldjogc3VwcG9ydCBhdHRhY2ggdmRldiBpbg0KPiBzZWNvbmRhcnkgcHJvY2Vzcw0KPiANCj4g T24gVGh1LCBTZXAgMjgsIDIwMTcgYXQgMzo1NSBQTSwgSmlhbmZlbmcgVGFuIDxqaWFuZmVuZy50 YW5AaW50ZWwuY29tPg0KPiB3cm90ZToNCj4gPiBXaGVuIHZkZXYgZHJpdmVyIHJlcXVlc3RzIGFu IGV0aGRldiBlbnRyeSBpb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ID4NCj4gPiAtICAgICAgIGV0aF9kZXYgPSBydGVfZXRoX2Rldl9hbGxvY2F0ZShuYW1lKTsN Cj4gPiAtICAgICAgIGlmICghZXRoX2RldikNCj4gPiAtICAgICAgICAgICAgICAgcmV0dXJuIE5V TEw7DQo+ID4gLQ0KPiA+IC0gICAgICAgaWYgKHByaXZhdGVfZGF0YV9zaXplKSB7DQo+ID4gLSAg ICAgICAgICAgICAgIGV0aF9kZXYtPmRhdGEtPmRldl9wcml2YXRlID0gcnRlX3ptYWxsb2Nfc29j a2V0KG5hbWUsDQo+ID4gLSAgICAgICAgICAgICAgICAgICAgICAgcHJpdmF0ZV9kYXRhX3NpemUs IFJURV9DQUNIRV9MSU5FX1NJWkUsDQo+ID4gLSAgICAgICAgICAgICAgICAgICAgICAgZGV2LT5k ZXZpY2UubnVtYV9ub2RlKTsNCj4gPiAtICAgICAgICAgICAgICAgaWYgKCFldGhfZGV2LT5kYXRh LT5kZXZfcHJpdmF0ZSkgew0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIHJ0ZV9ldGhfZGV2 X3JlbGVhc2VfcG9ydChldGhfZGV2KTsNCj4gPiArICAgICAgIGlmIChydGVfZWFsX3Byb2Nlc3Nf dHlwZSgpID09IFJURV9QUk9DX1BSSU1BUlkpIHsNCj4gPiArICAgICAgICAgICAgICAgZXRoX2Rl diA9IHJ0ZV9ldGhfZGV2X2FsbG9jYXRlKG5hbWUpOw0KPiA+ICsgICAgICAgICAgICAgICBpZiAo IWV0aF9kZXYpDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIE5VTEw7DQo+ID4g Kw0KPiA+ICsgICAgICAgICAgICAgICBpZiAocHJpdmF0ZV9kYXRhX3NpemUpIHsNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgICBldGhfZGV2LT5kYXRhLT5kZXZfcHJpdmF0ZSA9IHJ0ZV96bWFs bG9jX3NvY2tldChuYW1lLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBwcml2YXRlX2RhdGFfc2l6ZSwgUlRFX0NBQ0hFX0xJTkVfU0laRSwNCj4gPiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGV2LT5kZXZpY2UubnVtYV9ub2RlKTsN Cj4gPiArICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWV0aF9kZXYtPmRhdGEtPmRldl9wcml2 YXRlKSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBydGVfZXRoX2Rldl9y ZWxlYXNlX3BvcnQoZXRoX2Rldik7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICByZXR1cm4gTlVMTDsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICB9DQo+ID4gICAgICAg ICAgICAgICAgIH0NCj4gPiArICAgICAgIH0gZWxzZSB7DQo+ID4gKyAgICAgICAgICAgICAgIGV0 aF9kZXYgPSBydGVfZXRoX2Rldl9hdHRhY2hfc2Vjb25kYXJ5KG5hbWUpOw0KPiANCj4gSSBkb24n dCBzZWUgdGhlIHBvaW50IHdoeSB0aGUgc2Vjb25kYXJ5IHByb2Nlc3Mgc2hvdWxkIGNhbGwNCj4g cnRlX2V0aF92ZGV2X2FsbG9jYXRlKCkgaW4gdGhlIGZpcnN0IHBsYWNlLiBUaGUgZHJpdmVyIG5l ZWRzIHRvIHNldHVwDQo+IHRoZSBJUEMgYW55d2F5IHNvIGl0IHNob3VsZCBqdXN0IGNhbGwgcnRl X2V0aF9kZXZfYXR0YWNoX3NlY29uZGFyeSgpDQo+IGluc3RlYWQuDQoJDQpIbW0uLi4gbWFrZSBz ZW5zZS4gV2lsbCBmaXggaXQgaW4gdGhlIG5leHQgdmVyc2lvbi4NCg0KVGhhbmtzIGZvciB0aGUg aW5wdXQuDQoNClRoYW5rcywNCkppYW5mZW5nDQoNCg==