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 010832C54 for ; Tue, 19 Mar 2019 14:40:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 06:40:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,498,1544515200"; d="scan'208";a="215508415" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 19 Mar 2019 06:40:24 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Mar 2019 06:40:24 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Mar 2019 06:40:23 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.134]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.223]) with mapi id 14.03.0415.000; Tue, 19 Mar 2019 21:40:20 +0800 From: "Zhang, Qi Z" To: "Yigit, Ferruh" , "thomas@monjalon.net" , "Doherty, Declan" CC: "ktraynor@redhat.com" , "dev@dpdk.org" , "Shelton, Benjamin H" , "Vangati, Narender" Thread-Topic: [RFC v3] ethdev: claim device reset as async Thread-Index: AQHU3lWQ/zura1BE1EqEICLQKTj6+qYS8sPg Date: Tue, 19 Mar 2019 13:40:20 +0000 Message-ID: <039ED4275CED7440929022BC67E706115334F196@SHSMSX103.ccr.corp.intel.com> References: <20180920045626.106109-1-qi.z.zhang@intel.com> <039ED4275CED7440929022BC67E70611532AA4B1@SHSMSX103.ccr.corp.intel.com> <4c60c418-e653-41ec-ef09-b348dbd7d140@intel.com> In-Reply-To: <4c60c418-e653-41ec-ef09-b348dbd7d140@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDEzMTBhYjktYTAxMi00MDhmLWEwNGUtNGQ1Nzk4MmFjNzFhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidW1Na09GZHluSGx5cGZ5c00xWjZTWnhXbTd1YTNRWWY4UjBnWkkzMk9lSXFCWFlCdjhjN2lRc3hqK0pidEgwOSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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] [RFC v3] ethdev: claim device reset as async 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: Tue, 19 Mar 2019 13:40:26 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogWWlnaXQsIEZlcnJ1aA0K PiBTZW50OiBUdWVzZGF5LCBNYXJjaCAxOSwgMjAxOSA5OjE0IFBNDQo+IFRvOiBaaGFuZywgUWkg WiA8cWkuei56aGFuZ0BpbnRlbC5jb20+OyB0aG9tYXNAbW9uamF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+ID4+PiBAQCAtMjU3NCw2ICsyNTgyLDggQEAg ZW51bSBydGVfZXRoX2V2ZW50X3R5cGUgew0KPiA+Pj4gIAkJCQkvKio8IHF1ZXVlIHN0YXRlIGV2 ZW50IChlbmFibGVkL2Rpc2FibGVkKSAqLw0KPiA+Pj4gIAlSVEVfRVRIX0VWRU5UX0lOVFJfUkVT RVQsDQo+ID4+PiAgCQkJLyoqPCByZXNldCBpbnRlcnJ1cHQgZXZlbnQsIHNlbnQgdG8gVkYgb24g UEYgcmVzZXQgKi8NCj4gPj4+ICsJUlRFX0VUSF9FVkVOVF9SRVNFVF9DT01QTEVURSwNCj4gPj4+ ICsJCQkvKio8IGluZm9ybSBhcHBsaWNhdGlvbiB0aGF0IHJlc2V0IGlzIGNvbXBsZXRlZCAqLw0K PiA+Pj4gIAlSVEVfRVRIX0VWRU5UX1ZGX01CT1gsICAvKio8IG1lc3NhZ2UgZnJvbSB0aGUgVkYg cmVjZWl2ZWQgYnkNCj4gUEYNCj4gPj4gKi8NCj4gPj4+ICAJUlRFX0VUSF9FVkVOVF9NQUNTRUMs ICAgLyoqPCBNQUNzZWMgb2ZmbG9hZCByZWxhdGVkIGV2ZW50ICovDQo+ID4+PiAgCVJURV9FVEhf RVZFTlRfSU5UUl9STVYsIC8qKjwgZGV2aWNlIHJlbW92YWwgZXZlbnQgKi8NCj4gPj4+DQo+ID4N Cg0K From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 125A8A00E6 for ; Tue, 19 Mar 2019 14:40:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C68E2C60; Tue, 19 Mar 2019 14:40:28 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 010832C54 for ; Tue, 19 Mar 2019 14:40:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 06:40:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,498,1544515200"; d="scan'208";a="215508415" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 19 Mar 2019 06:40:24 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Mar 2019 06:40:24 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Mar 2019 06:40:23 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.134]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.223]) with mapi id 14.03.0415.000; Tue, 19 Mar 2019 21:40:20 +0800 From: "Zhang, Qi Z" To: "Yigit, Ferruh" , "thomas@monjalon.net" , "Doherty, Declan" CC: "ktraynor@redhat.com" , "dev@dpdk.org" , "Shelton, Benjamin H" , "Vangati, Narender" Thread-Topic: [RFC v3] ethdev: claim device reset as async Thread-Index: AQHU3lWQ/zura1BE1EqEICLQKTj6+qYS8sPg Date: Tue, 19 Mar 2019 13:40:20 +0000 Message-ID: <039ED4275CED7440929022BC67E706115334F196@SHSMSX103.ccr.corp.intel.com> References: <20180920045626.106109-1-qi.z.zhang@intel.com> <039ED4275CED7440929022BC67E70611532AA4B1@SHSMSX103.ccr.corp.intel.com> <4c60c418-e653-41ec-ef09-b348dbd7d140@intel.com> In-Reply-To: <4c60c418-e653-41ec-ef09-b348dbd7d140@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDEzMTBhYjktYTAxMi00MDhmLWEwNGUtNGQ1Nzk4MmFjNzFhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidW1Na09GZHluSGx5cGZ5c00xWjZTWnhXbTd1YTNRWWY4UjBnWkkzMk9lSXFCWFlCdjhjN2lRc3hqK0pidEgwOSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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] [RFC v3] ethdev: claim device reset as async 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190319134020.pmQKEaemo2fxc5onLEQ4vcxikfEcJ84j9NYfSZCo-nc@z> DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogWWlnaXQsIEZlcnJ1aA0K PiBTZW50OiBUdWVzZGF5LCBNYXJjaCAxOSwgMjAxOSA5OjE0IFBNDQo+IFRvOiBaaGFuZywgUWkg WiA8cWkuei56aGFuZ0BpbnRlbC5jb20+OyB0aG9tYXNAbW9uamFsb24ubmV0OyBEb2hlcnR5LCBE ZWNsYW4NCj4gPGRlY2xhbi5kb2hlcnR5QGludGVsLmNvbT4NCj4gQ2M6IGt0cm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