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 8549B1B971 for ; Thu, 10 May 2018 10:34:08 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 01:34:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,384,1520924400"; d="scan'208";a="38220456" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 10 May 2018 01:34:06 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 10 May 2018 01:34:06 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 10 May 2018 01:34:06 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.79]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.240]) with mapi id 14.03.0319.002; Thu, 10 May 2018 16:33:34 +0800 From: "Hu, Jiayu" To: "Bie, Tiwei" CC: "dev@dpdk.org" , "Yang, Zhiyong" , "maxime.coquelin@redhat.com" Thread-Topic: [dpdk-dev] [PATCH] net/virtio-user: fix feature setting with vhost-net backend Thread-Index: AQHT5c6uRuzI63v/a0K4jNcqdO4r86QknL0AgABSSwCAAvgOgIAAvndw Date: Thu, 10 May 2018 08:33:33 +0000 Message-ID: References: <1525675806-22387-1-git-send-email-jiayu.hu@intel.com> <20180508024950.7rqyxjihdfilvovf@debian> <20180508074421.GA57422@dpdk15.sh.intel.com> <20180510050443.mzibwgqnp7ixwa3m@debian> In-Reply-To: <20180510050443.mzibwgqnp7ixwa3m@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.200.100 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDJiYjMyN2YtMTYzMC00ZWZjLWI0OWItNWJiYjNiYWQ1NjYxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InYzNk54VnJaSUdxU1lGbDNDc3VvQ29uSDg0RFNuTDNodHBmaXRGdktVTms9In0= x-ctpclassification: CTP_NT 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] net/virtio-user: fix feature setting with vhost-net backend 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, 10 May 2018 08:34:10 -0000 SGkgVGl3ZWksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmllLCBU aXdlaQ0KPiBTZW50OiBUaHVyc2RheSwgTWF5IDEwLCAyMDE4IDE6MDUgUE0NCj4gVG86IEh1LCBK aWF5dSA8amlheXUuaHVAaW50ZWwuY29tPg0KPiBDYzogZGV2QGRwZGsub3JnOyBZYW5nLCBaaGl5 b25nIDx6aGl5b25nLnlhbmdAaW50ZWwuY29tPjsNCj4gbWF4aW1lLmNvcXVlbGluQ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