From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 2A7B0475E for ; Mon, 13 Jun 2016 13:41:50 +0200 (CEST) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bCQHf-0007r4-9x; Mon, 13 Jun 2016 13:43:59 +0200 To: dev@dpdk.org References: <1463993205-5623-1-git-send-email-olivier.matz@6wind.com> <1464359593-3534-1-git-send-email-olivier.matz@6wind.com> Cc: johndale@cisco.com, konstantin.ananyev@intel.com, helin.zhang@intel.com, adrien.mazarguil@6wind.com, rahul.lakkireddy@chelsio.com, alejandro.lucero@netronome.com, sony.chacko@qlogic.com From: Olivier Matz Message-ID: <575E9BED.7060106@6wind.com> Date: Mon, 13 Jun 2016 13:41:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <1464359593-3534-1-git-send-email-olivier.matz@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] mbuf: new flag when Vlan is stripped X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 11:41:50 -0000 Hi, On 05/27/2016 04:33 PM, Olivier Matz wrote: > The behavior of PKT_RX_VLAN_PKT was not very well defined, resulting in > PMDs not advertising the same flags in similar conditions. > > Following discussion in [1], introduce 2 new flags PKT_RX_VLAN_STRIPPED > and PKT_RX_QINQ_STRIPPED that are better defined: > > PKT_RX_VLAN_STRIPPED: a vlan has been stripped by the hardware and its > tci is saved in mbuf->vlan_tci. This can only happen if vlan stripping > is enabled in the RX configuration of the PMD. > > For now, the old flag PKT_RX_VLAN_PKT is kept but marked as deprecated. > It should be removed from applications and PMDs in a future revision. > > This patch also updates the drivers. For PKT_RX_VLAN_PKT: > > - e1000, enic, i40e, mlx5, nfp, vmxnet3: done, PKT_RX_VLAN_PKT already > had the same meaning than PKT_RX_VLAN_STRIPPED, minor update is > required. > - fm10k: done, PKT_RX_VLAN_PKT already had the same meaning than > PKT_RX_VLAN_STRIPPED, and vlan stripping is always enabled on fm10k. > - ixgbe: modification done (vector and normal), the old flag was set > when a vlan was recognized, even if vlan stripping was disabled. > - the other drivers do not support vlan stripping. > > For PKT_RX_QINQ_PKT, it was only supported on i40e, and the behavior was > already correct, so we can reuse the same bit value for > PKT_RX_QINQ_STRIPPED. > > [1] http://dpdk.org/ml/archives/dev/2016-April/037837.html, > > Signed-off-by: Olivier Matz Any comment about this patch?