From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 275292A62 for ; Thu, 29 Mar 2018 09:33:05 +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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2018 00:33:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,375,1517904000"; d="scan'208";a="39083005" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 29 Mar 2018 00:33:03 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Mar 2018 00:33:03 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Mar 2018 00:33:02 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.235]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.129]) with mapi id 14.03.0319.002; Thu, 29 Mar 2018 15:32:59 +0800 From: "Tan, Jianfeng" To: "xiangxia.m.yue@gmail.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH 2/2] vhost: add pipe event for optimizing negotiating Thread-Index: AQHTxli1TodAzJ26PUiafXl11VlXa6Pmy8Iw Date: Thu, 29 Mar 2018 07:32:58 +0000 Message-ID: References: <1522216165-19666-1-git-send-email-xiangxia.m.yue@gmail.com> <1522216165-19666-3-git-send-email-xiangxia.m.yue@gmail.com> In-Reply-To: <1522216165-19666-3-git-send-email-xiangxia.m.yue@gmail.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 2/2] vhost: add pipe event for optimizing negotiating 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: Thu, 29 Mar 2018 07:33:06 -0000 SGkgWGlhbmd4aWEsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogeGlh bmd4aWEubS55dWVAZ21haWwuY29tIFttYWlsdG86eGlhbmd4aWEubS55dWVAZ21haWwuY29tXQ0K PiBTZW50OiBXZWRuZXNkYXksIE1hcmNoIDI4LCAyMDE4IDE6NDkgUE0NCj4gVG86IFRhbiwgSmlh bmZlbmcNCj4gQ2M6IGRldkBkcGRrLm9yZzsgVG9uZ2hhbyBaaGFuZw0KPiBTdWJqZWN0OiBbUEFU Q0ggMi8yXSB2aG9zdDogYWRkIHBpcGUgZXZlbnQgZm9yIG9wdGltaXppbmcgbmVnb3RpYXRpbmcN Cj4gDQo+IEZyb206IFRvbmdoYW8gWmhhbmcgPHhpYW5neGlhLm0ueXVlQGdtYWlsLmNvbT4NCj4g DQo+IFdoZW4gdmhvc3TigJR1c2VyIGNvbm5lY3RzIHFlbXUgc3VjY2Vzc2Z1bGx5LCBkcGRrIHdp bGwgY2FsbA0KDQpUeXBvOiAiLSINCg0KPiB0aGUgdmhvc3RfdXNlcl9hZGRfY29ubmVjdGlvbiB0 byBhZGQgdW5peCBzb2NrZXQgZmQgdG8gcG9sbC4NCj4gQW5kIGZkc2V0X2FkZCBvbmx5IHNldCB0 aGUgc29ja2V0IGZkIHRvIGEgZmRlbnRyeSB3aGlsZSBwb2xsDQo+IG1heSBzbGVlcCBub3cuIElu IGEgZ2VuZXJhbCBjYXNlLCB0aGlzIGlzIG5vIHByb2JsZW0uIEJ1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