From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 2E7D51BDA6 for ; Wed, 4 Apr 2018 11:59:15 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2018 02:59:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,405,1517904000"; d="scan'208";a="43901350" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 04 Apr 2018 02:59:13 -0700 Received: from BGSMSX107.gar.corp.intel.com (10.223.4.191) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 4 Apr 2018 02:59:13 -0700 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.52]) by BGSMSX107.gar.corp.intel.com ([169.254.9.72]) with mapi id 14.03.0319.002; Wed, 4 Apr 2018 15:29:10 +0530 From: "Yang, Zhiyong" To: "Bie, Tiwei" CC: "Tan, Jianfeng" , "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "thomas@monjalon.net" , "Wang, Zhihong" Thread-Topic: [PATCH v4 1/1] net/virtio-user: add support for server mode Thread-Index: AQHTy0Ykh/YPBG1p8UutscUp4YvD5KPuyrcAgADwhYCAAKU5sA== Date: Wed, 4 Apr 2018 09:59:09 +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: <20180404053717.trp4pchameeirymv@debian> 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 09:59:15 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmllLCBUaXdlaQ0KPiBT ZW50OiBXZWRuZXNkYXksIEFwcmlsIDQsIDIwMTggMTozNyBQTQ0KPiBUbzogWWFuZywgWmhpeW9u ZyA8emhpeW9uZy55YW5nQGludGVsLmNvbT4NCj4gQ2M6IFRhbiwgSmlhbmZlbmcgPGppYW5mZW5n LnRhbkBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmc7DQo+IG1heGltZS5jb3F1ZWxpbkByZWRoYXQu Y29tOyB0aG9tYXNAbW9uamFsb24ubmV0OyBXYW5nLCBaaGlob25nDQo+IDx6aGlob25nLndhbmdA aW50ZWwuY29tPg0KPiBTdWJqZWN0OiBSZTogW1BBVENIIHY0IDEvMV0gbmV0L3ZpcnRpby11c2Vy OiBhZGQgc3VwcG9ydCBmb3Igc2VydmVyIG1vZGUNCj4gDQo+IE9uIFR1ZSwgQXByIDAzLCAyMDE4 IGF0IDExOjE2OjI2UE0gKzA4MDAsIFRhbiwgSmlhbmZlbmcgd3JvdGU6DQo+ID4gT24gNC8zLzIw MTggODoyMCBQTSwgemhpeW9uZy55YW5nQGludGVsLmNvbSB3cm90ZToNCj4gWy4uLl0NCj4gPiA+ IEBAIC0yNjcsMjEgKzI3MCwyNyBAQCB2aXJ0aW9fdXNlcl9kZXZfc2V0dXAoc3RydWN0IHZpcnRp b191c2VyX2Rldg0KPiAqZGV2KQ0KPiA+ID4gICAJZGV2LT52aG9z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