From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EBD98A0C45; Thu, 25 Nov 2021 14:22:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF3A040DFD; Thu, 25 Nov 2021 14:22:11 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 6E88040140 for ; Thu, 25 Nov 2021 14:22:10 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10178"; a="296319262" X-IronPort-AV: E=Sophos;i="5.87,263,1631602800"; d="scan'208";a="296319262" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 05:22:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,263,1631602800"; d="scan'208";a="741756294" Received: from silpixa00400884.ir.intel.com ([10.243.22.82]) by fmsmga006.fm.intel.com with ESMTP; 25 Nov 2021 05:22:08 -0800 From: Radu Nicolau To: Radu Nicolau , Akhil Goyal Cc: dev@dpdk.org, konstantin.ananyev@intel.com Subject: [PATCH] examples/ipsec-secgw: wrong offload flag used for TSO IPv6 Date: Thu, 25 Nov 2021 13:03:54 +0000 Message-Id: <20211125130355.552802-1-radu.nicolau@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org RTE_MBUF_F_TX_OUTER_IP_CKSUM should not be set for IPv6 packets. Fixes: a7f32947a316 ("examples/ipsec-secgw: support TCP TSO") Signed-off-by: Radu Nicolau --- examples/ipsec-secgw/ipsec_process.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/ipsec-secgw/ipsec_process.c b/examples/ipsec-secgw/ipsec_process.c index 3fc4b3a84f..285e9c7f4c 100644 --- a/examples/ipsec-secgw/ipsec_process.c +++ b/examples/ipsec-secgw/ipsec_process.c @@ -232,8 +232,10 @@ prep_process_group(void *sa, struct rte_mbuf *mb[], uint32_t cnt) mb[j]->outer_l3_len = mb[j]->l3_len; mb[j]->outer_l2_len = mb[j]->l2_len; mb[j]->ol_flags |= - (RTE_MBUF_F_TX_OUTER_IP_CKSUM | - RTE_MBUF_F_TX_TUNNEL_ESP); + RTE_MBUF_F_TX_TUNNEL_ESP; + if (RTE_ETH_IS_IPV4_HDR(ptype)) + mb[j]->ol_flags |= + RTE_MBUF_F_TX_OUTER_IP_CKSUM; } mb[j]->l4_len = sizeof(struct rte_tcp_hdr); mb[j]->ol_flags |= (RTE_MBUF_F_TX_TCP_SEG | -- 2.25.1