From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0D2CA0093; Thu, 21 May 2020 02:31:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B8AD21C230; Thu, 21 May 2020 02:31:38 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4E0B11C230 for ; Thu, 21 May 2020 02:31:37 +0200 (CEST) IronPort-SDR: VL75b///PzB9q59YxLEgiFLtgo0/0G22anwuI5llMO4bQfqhnQilQeolsZeFdKTZ5Mw1ogHH0b 5AEGgZRLPXsA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 17:31:36 -0700 IronPort-SDR: ojijWOzfAwEDkSk7M5a5iSdkvAGWvbke5uwe8njGHXAqk0QxjCWG/aX/kw1nT/hesB/jFFuulH JfVHuGznM2HA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,415,1583222400"; d="scan'208";a="289534765" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.116.183]) by fmsmga004.fm.intel.com with ESMTP; 20 May 2020 17:31:35 -0700 Date: Thu, 21 May 2020 08:22:57 +0800 From: Ye Xiaolong To: Jeff Guo Cc: beilei.xing@intel.com, jingjing.wu@intel.com, qi.z.zhang@intel.com, dev@dpdk.org Message-ID: <20200521002257.GD99392@intel.com> References: <20200520214414.34420-1-jia.guo@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520214414.34420-1-jia.guo@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] net/iavf: fix error setting for L2TAG 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 05/20, Jeff Guo wrote: >Base on HW, if a packet be split into multiple segments, the L2TAG >should only be valid on the last Rx descriptor. So fix it by setting >L2TAG into mbuf when processing the last split packet. > >Fixes: 319c421f3890 ("net/avf: enable SSE Rx Tx") > >Signed-off-by: Jeff Guo >--- > drivers/net/iavf/iavf_rxtx_vec_common.h | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/drivers/net/iavf/iavf_rxtx_vec_common.h b/drivers/net/iavf/iavf_rxtx_vec_common.h >index a6ba22758..25bb502de 100644 >--- a/drivers/net/iavf/iavf_rxtx_vec_common.h >+++ b/drivers/net/iavf/iavf_rxtx_vec_common.h >@@ -33,6 +33,7 @@ reassemble_packets(struct iavf_rx_queue *rxq, struct rte_mbuf **rx_bufs, > if (!split_flags[buf_idx]) { > /* it's the last packet of the set */ > start->hash = end->hash; >+ start->vlan_tci = end->vlan_tci; > start->ol_flags = end->ol_flags; > /* we need to strip crc for the whole packet */ > start->pkt_len -= rxq->crc_len; >-- >2.20.1 > Applied to dpdk-next-net-intel, Thanks.