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 B35F3A052B; Tue, 28 Jul 2020 15:51:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83CA21BFF3; Tue, 28 Jul 2020 15:51:31 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 58DDF1BFF2; Tue, 28 Jul 2020 15:51:29 +0200 (CEST) IronPort-SDR: TSzYcOt0QZB+gpyRRciCqfdAUK4u/flzhEbHVoa6IdTfMGxRILmf+MEu19Wdf+onO8MHGeu/AE SABOAkpNnhfA== X-IronPort-AV: E=McAfee;i="6000,8403,9695"; a="212731954" X-IronPort-AV: E=Sophos;i="5.75,406,1589266800"; d="scan'208";a="212731954" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2020 06:51:25 -0700 IronPort-SDR: YCwYnkEgeUI/7bOiQ1kAGOtg3ExMkFLaecrs79xhd3tvRaVFopJoFYhXY/ASYwACjVtwGNNkT1 H03v6egWoOPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,406,1589266800"; d="scan'208";a="322190423" Received: from npg-dpdk-haiyue-3.sh.intel.com ([10.67.118.233]) by fmsmga002.fm.intel.com with ESMTP; 28 Jul 2020 06:51:22 -0700 From: Haiyue Wang To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Cc: yinan.wang@intel.com, ting.xu@intel.com, Haiyue Wang , stable@dpdk.org Date: Tue, 28 Jul 2020 21:42:03 +0800 Message-Id: <20200728134203.927631-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v1] net/ice: fix TCP checksum offload failure 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" The L4LEN field of the Descriptor Header Offset for TCP should be the real length including the TCP options. Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") Cc: stable@dpdk.org Signed-off-by: Haiyue Wang --- drivers/net/ice/ice_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index cc3139042e..ddf6a93fb2 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -2234,7 +2234,7 @@ ice_txd_enable_checksum(uint64_t ol_flags, switch (ol_flags & PKT_TX_L4_MASK) { case PKT_TX_TCP_CKSUM: *td_cmd |= ICE_TX_DESC_CMD_L4T_EOFT_TCP; - *td_offset |= (sizeof(struct rte_tcp_hdr) >> 2) << + *td_offset |= (tx_offload.l4_len >> 2) << ICE_TX_DESC_LEN_L4_LEN_S; break; case PKT_TX_SCTP_CKSUM: -- 2.28.0