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 BA86A58CE for ; Mon, 22 Jan 2018 13:51:11 +0100 (CET) Received: from lfbn-lil-1-110-231.w90-45.abo.wanadoo.fr ([90.45.197.231] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1edbZF-0006bu-1D; Mon, 22 Jan 2018 13:51:18 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Mon, 22 Jan 2018 13:51:09 +0100 Date: Mon, 22 Jan 2018 13:51:09 +0100 From: Olivier Matz To: Morten =?iso-8859-1?Q?Br=F8rup?= Cc: DPDK Message-ID: <20180122125109.6i66nim3qm2xxt3j@platinum> References: <98CBD80474FA8B44BF855DF32C47DC35B41D73@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35B41D73@smartserver.smartshare.dk> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] mbuf vlan_tci validity unclear 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: Mon, 22 Jan 2018 12:51:11 -0000 Hi Morten, On Wed, Jan 17, 2018 at 10:20:53PM +0100, Morten Brørup wrote: > In rte_mbuf.h, the description of the PKT_RX_VLAN flag (lines 93-94) says that > mbuf->vlan_tci contains the VLAN TCI if the flag is set; however, the > description of the vlan_tci field (line 513) says that the > PKT_RX_VLAN_STRIPPED flag must be set for it to be valid. > > Which one is it? And will someone please update the comments in rte_mbuf.h > accordingly. Thanks for spotting this, I will send a patch to fix it. PKT_RX_VLAN means that mbuf->vlan_tci is valid. And PKT_RX_VLAN_STRIPPED implies that PKT_RX_VLAN is set too.