From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 110521C636 for ; Wed, 4 Apr 2018 16:57:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2018 07:57:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,406,1517904000"; d="scan'208";a="30979872" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga008.jf.intel.com with ESMTP; 04 Apr 2018 07:57:32 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 4 Apr 2018 07:57:32 -0700 Received: from BGSMSX108.gar.corp.intel.com (10.223.4.192) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 4 Apr 2018 07:57:32 -0700 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.52]) by BGSMSX108.gar.corp.intel.com ([169.254.8.7]) with mapi id 14.03.0319.002; Wed, 4 Apr 2018 20:27:29 +0530 From: "Yang, Zhiyong" To: "Yang, Zhiyong" , "Bie, Tiwei" CC: "Tan, Jianfeng" , "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "thomas@monjalon.net" , "Wang, Zhihong" Thread-Topic: [dpdk-dev] [PATCH v4 1/1] net/virtio-user: add support for server mode Thread-Index: AQHTy/u8tEfwmlLM00Sy25lpC7DJT6Pwsdvg Date: Wed, 4 Apr 2018 14:57:28 +0000 Message-ID: References: <20180321030343.64399-1-zhiyong.yang@intel.com> <20180403122009.52876-1-zhiyong.yang@intel.com> <20180403122009.52876-2-zhiyong.yang@intel.com> <20180404053717.trp4pchameeirymv@debian> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 1/1] net/virtio-user: add support for server mode 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: Wed, 04 Apr 2018 14:57:37 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IFttYWlsdG86ZGV2 LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBZYW5nLCBaaGl5b25nDQo+IFNlbnQ6IFdl ZG5lc2RheSwgQXByaWwgNCwgMjAxOCA1OjU5IFBNDQo+IFRvOiBCaWUsIFRpd2VpIDx0aXdlaS5i aWVAaW50ZWwuY29tPg0KPiBDYzogVGFuLCBKaWFuZmVuZyA8amlhbmZlbmcudGFuQGludGVsLmNv bT47IGRldkBkcGRrLm9yZzsNCj4gbWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb207IHRob21hc0Bt b25qYWxvbi5uZXQ7IFdhbmcsIFpoaWhvbmcNCj4gPHpoaWhvbmcud2FuZ0BpbnRlbC5jb20+DQo+ IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2NCAxLzFdIG5ldC92aXJ0aW8tdXNlcjog YWRkIHN1cHBvcnQgZm9yDQo+IHNlcnZlciBtb2RlDQo+IA0KPiANCj4gDQo+ID4gLS0tLS1Pcmln aW5hbCBNZXNzYWdlLS0tLS0NCj4gPiBGcm9tOiBCaWUsIFRpd2VpDQo+ID4gU2VudDogV2VkbmVz ZGF5LCBBcHJpbCA0LCAyMDE4ID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