From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] examples/vhost: remove VLAN strip option Date: Thu, 18 Aug 2016 09:52:09 +0200 Message-ID: <56458495-5ee1-ff9c-c2d0-819b120cfcbc@redhat.com> References: <1471499173-11749-1-git-send-email-jianfeng.tan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: yuanhan.liu@linux.intel.com To: Jianfeng Tan , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 5F33E5592 for ; Thu, 18 Aug 2016 09:52:13 +0200 (CEST) In-Reply-To: <1471499173-11749-1-git-send-email-jianfeng.tan@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 08/18/2016 07:46 AM, Jianfeng Tan wrote: > When VMDQ is enabled, different NICs have different behaviors for > disabling VLAN strip. In detail, i40e only enables/disables it of > PF's main vsi; fm10k cannot disable VLAN strip, etc. We now remove > this option, --vlan-strip, to reduce any confusion. And now, VLAN > strip will be enabled and cannot be disabled. > > Reported-by: Qian Xu > Signed-off-by: Jianfeng Tan > --- > doc/guides/sample_app_ug/vhost.rst | 11 ++++------- > examples/vhost/main.c | 26 +------------------------- > 2 files changed, 5 insertions(+), 32 deletions(-) Minor comment below. Other than that: Reviewed-by: Maxime Coquelin > diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst > index 2b7defc..a204f78 100644 > --- a/doc/guides/sample_app_ug/vhost.rst > +++ b/doc/guides/sample_app_ug/vhost.rst > @@ -496,13 +496,10 @@ due to the large and complex code, it's better to redesign it than fixing > it to make it work again. Hence, zero copy may be added back later. > > **VLAN strip.** > -The VLAN strip option enable/disable the VLAN strip on host, if disabled, the guest will receive the packets with VLAN tag. > -It is enabled by default. > - > -.. code-block:: console > - > - ./vhost-switch -c f -n 4 --socket-mem 1024 --huge-dir /mnt/huge \ > - -- --vlan-strip [0, 1] > +VLAN strip option is removed, because different NICs have different behaviors > +when disabling VLAN strip. Such feature, which heavily depends on hardware, > +should be removed from this example to deduce confusion. Now, VLAN strip is I'm not a native English speaker, but I would use "reduce" instead of "deduce" here. I might be wrong, so feel free to keep as-is if appropriate. Thanks, Maxime