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 416E0A034F for ; Thu, 29 Jul 2021 18:05:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB82A4111E; Thu, 29 Jul 2021 18:05:08 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mails.dpdk.org (Postfix) with ESMTP id 8DBFC410FC for ; Thu, 29 Jul 2021 18:05:06 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id r2so7609686wrl.1 for ; Thu, 29 Jul 2021 09:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7oeGG8oafyQSHG0G89bSbpKfXqo7Mkcd5KeE418U2VU=; b=KTLhd4igHPa+DqVscQqtjdNUNDeZfus1wdAD30anlRDzuMoWqAkCekMURlGunMIN7T mQ47XSKHQ5MjTi2yl9vYPbM8Uv0RgLLMTUIt3vq2kSydSuLDgbhvA9VSHCVcJIaO17iN JW0TyIjsvmxdwoPIut46yvvTDjPc4IcVJlqkRomQzWKCVHsR0hetM6tNf0NgQd0GGcTK mfiYZbgfugM5VCczAyOzYhs0K5q8qSXtRCuIwZ8COnHQ02RxTWY1i6qLoiPTvFuBk8A+ zT6mG/hXGOon929kcpDcTUfvxHC2d9EBaIH0iOdYbt+ZUGBVRFFr/7hjRBldSQQb4sOZ pUqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7oeGG8oafyQSHG0G89bSbpKfXqo7Mkcd5KeE418U2VU=; b=LDUUzSKrmoN5WqZu2EcAJPEU1RkhiWeZ/Ok2NgLf5ykgcVvC8gzqYSbf/zaU6FhZP1 Rq3MRU/bjaWvYsXADwgsf2cdGuOILdDgmRvcyMX2fkpl1wyjJ1HYIOylsI+GJ2owiyD1 m32xEi01pr3gTMQKna4bffPVbqpRC1GkjkjPivkkvquT0PG1g5Nsrfb02PkY+QUDbsJr ZV1Nk4MXM8LpZ4utAxccl6SRI0Q2JL53h+CGIPYIVL3NlvF41JKHqaj5vJaHnKYvrqdG 2nQfSeFSI6IFEy6zVber05fK37DGg4VjWYk4fP4sxhDp9+x+7Ku5ND06ZCldizcM0Fr/ bz9A== X-Gm-Message-State: AOAM531m+PGVMJZM+KTi/Ub9Sk96Uc/s7yBHr3ruM/yiB5Pa9W4IHDWr qpX+KlInpzMTMFz/ID3MuGjXxw== X-Google-Smtp-Source: ABdhPJxPkLhCoq6U6tykd4GIT0j28YYgSFWkVSe1QI5YG5T8U4gBYRsw+apzC4njwOEFeqg//LehNg== X-Received: by 2002:adf:b30a:: with SMTP id j10mr5490437wrd.43.1627574706253; Thu, 29 Jul 2021 09:05:06 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id z2sm3557449wma.45.2021.07.29.09.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 09:05:05 -0700 (PDT) Date: Thu, 29 Jul 2021 18:05:05 +0200 From: Olivier Matz To: Gregory Etelson Cc: dev@dpdk.org, Ajit Khaparde , Andrew Rybchenko , Ferruh Yigit , Thomas Monjalon , stable@dpdk.org, Xiaoyun Li Message-ID: References: <20210719083309.15428-1-getelson@nvidia.com> <20210729093948.25847-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729093948.25847-1-getelson@nvidia.com> Subject: Re: [dpdk-stable] [PATCH v3] app/testpmd: fix TX checksum calculation for tunnel X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" On Thu, Jul 29, 2021 at 12:39:48PM +0300, Gregory Etelson wrote: > csumonly engine calculates TX checksum of a tunnelled packet for outer > headers only or separately for outer and inner headers. The > calculation method is determined by checksum configuration options. > If TX checksum calculation is separated, the inner headers are > processed before outer headers. > > Inner headers processing sets checksum values to 0 unconditionally. > If TX configuration offloads inner checksums only, outer checksum > calculation in software will read 0 instead of real values and > produce wrong result. > > The patch zeroes inner checksums only before software calculation. > > Fixes: 51f694dd40f5 ("app/testpmd: rework checksum forward engine") > Cc: stable@dpdk.org As said previously, I think the correct Fixes line is: Fixes: 6b520d54ebfe ("app/testpmd: use Tx preparation in checksum engine") Acked-by: Olivier Matz Thanks