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 3E385A329E for ; Thu, 24 Oct 2019 04:44:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12EE51C1AB; Thu, 24 Oct 2019 04:44:59 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DC95D1C1AB for ; Thu, 24 Oct 2019 04:44:56 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 19:44:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,222,1569308400"; d="scan'208";a="398263607" Received: from dpdk-penghuang-worker1.sh.intel.com ([10.67.117.243]) by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2019 19:44:55 -0700 From: Peng Huang To: qabuild@intel.com Cc: Peng Huang , stable@dpdk.org Date: Thu, 24 Oct 2019 09:20:10 +0000 Message-Id: <1571908810-95134-1-git-send-email-peng.huang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-stable] [DPDK] app/testpmd: fix Tx checksum problem when TSO enabled X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" This patch fixed the TX checksum value problem when enabled TSO in tunnel packets, because outer UDP checksum calculation depend on the TSO configuration. depend on patch: app/testpmd: enable GTP header parse and Tx checksum offload Fixes: 0f62d63593ed ("app/testpmd: support tunneled TSO in checksum engine") Cc: stable@dpdk.org Signed-off-by: Peng Huang --- app/test-pmd/csumonly.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index e1cb7fb..a1775f4 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -478,6 +478,9 @@ struct simple_gre_hdr { if (info->outer_l4_proto != IPPROTO_UDP) return ol_flags; + if (tso_enabled) + ol_flags |= PKT_TX_TCP_SEG; + /* Skip SW outer UDP checksum generation if HW supports it */ if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) { ol_flags |= PKT_TX_OUTER_UDP_CKSUM; -- 1.8.3.1