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 1203FA0524 for ; Fri, 5 Feb 2021 18:51:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BBEB64067B; Fri, 5 Feb 2021 18:51:06 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 7B4624067B for ; Fri, 5 Feb 2021 18:51:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612547464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qiynEPMXalgbWRmSOI+x2vx6qRnA0k7X/Ek+tpp+Mq8=; b=UqVjxroleDIKrCbvaGo7kN3BpJmVOIpSbRAowb4fyk3xnfEdITjC0eF6d7/JogzsXwweUF Mp0uON/A4Na0JqYHU7tYfZwlUilXKcw/Cti1q3N+lS8by6Mqod9mh0xWWgl8uungx8RWSm JAcLm/tZruU/aSXsjy8993K1QbCXz5k= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-361-fOWGSqPVMi-JknVPcTUfHw-1; Fri, 05 Feb 2021 12:51:02 -0500 X-MC-Unique: fOWGSqPVMi-JknVPcTUfHw-1 Received: by mail-wr1-f72.google.com with SMTP id e15so5714774wrm.13 for ; Fri, 05 Feb 2021 09:51:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=qiynEPMXalgbWRmSOI+x2vx6qRnA0k7X/Ek+tpp+Mq8=; b=Wvump42gx4seeIZv+vZA53Vpd2N46LKuLsx0w+qL/0hVLCL0VwUHrlmgBewFXJxhRW /wkSJGpxMqe0ot/az7fuo2bVKfvRuNSqemzgsI2ULj/W4VCOg4dIrZ09VbnS9dwyYC97 3U+HqG5pENjinmL29Coe/z5dH1+G4eZlOifd8lgAX3+NbtRSz/PRZSvIWxxYDBXHlWQi IqrPYFoL1OD/id61CR1/HUEelYftWiMTo3KUTt6mBvRPF+BRb9ZPEoz+SggLm/5Ru+Yz nfQPzLtQnSdmLCTfx2F/vOm+JJBO+hNGG3h8n0JEc0vfyPDh4Rj6nHUHsRTKkEwwv3nr tNcg== X-Gm-Message-State: AOAM5331+WzKo0tc+7hX7NBzxtaUWTlr5J2kPB0dMIyZq1n7oBHG218n ZYyeNcfThTRiN50SxnUC2Fj3BCqTFQH1oaTFhQxutpyOQ3iutxh6xSxt3byiiBBidw2zizg1fD2 4aqbdEpw= X-Received: by 2002:a05:600c:35c9:: with SMTP id r9mr552021wmq.0.1612547461666; Fri, 05 Feb 2021 09:51:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5W+yqUlo+FIyXNr2RnoPympDs5lVePC5gbuvLsciv3EVqkKI47SuE4NPLDy1ZalmryNelPQ== X-Received: by 2002:a05:600c:35c9:: with SMTP id r9mr552010wmq.0.1612547461280; Fri, 05 Feb 2021 09:51:01 -0800 (PST) Received: from localhost (net-37-116-32-78.cust.vodafonedsl.it. [37.116.32.78]) by smtp.gmail.com with ESMTPSA id n4sm12792462wrt.47.2021.02.05.09.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 09:51:00 -0800 (PST) From: Paolo Valerio To: Haiyue Wang , dev@dpdk.org Cc: aconole@redhat.com, david.marchand@redhat.com, qi.z.zhang@intel.com, leyi.rong@intel.com, Lijuan.Tu@intel.com, Ruifeng.Wang@arm.com, Feifei.Wang2@arm.com, Haiyue Wang , stable@dpdk.org, Jeff Guo , Bruce Richardson , Konstantin Ananyev Cc: In-Reply-To: <20210204143949.22827-1-haiyue.wang@intel.com> References: <20210202070652.145861-1-haiyue.wang@intel.com> <20210204143949.22827-1-haiyue.wang@intel.com> Date: Fri, 05 Feb 2021 18:50:56 +0100 Message-ID: <87a6siz9mn.fsf@fed.void> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pvalerio@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Subject: Re: [dpdk-stable] [PATCH v3] net/ixgbe: fix UDP zero checksum error 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" Hi Haiyue, Haiyue Wang writes: > There is an 82599 errata that UDP frames with a zero checksum are > incorrectly marked as checksum invalid by the hardware. This was > leading to misleading PKT_RX_L4_CKSUM_BAD flag. > > This patch changes the bad UDP checksum to PKT_RX_L4_CKSUM_UNKNOWN, > so the software application will then have to recompute the checksum > itself if needed. > > Bugzilla ID: 629 > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Reported-by: Paolo Valerio > Signed-off-by: Haiyue Wang > --- > v3: Update the hardware errata doc name and session > v2: Change the always GOOD checksum to UNKOWN if BAD. > --- > doc/guides/nics/ixgbe.rst | 10 ++++++++ > drivers/net/ixgbe/ixgbe_rxtx.c | 30 ++++++++++++++++++++---- > drivers/net/ixgbe/ixgbe_rxtx.h | 2 ++ > drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c | 32 +++++++++++++++++++++++--- > 4 files changed, 67 insertions(+), 7 deletions(-) Tested it successfully with OvS ct() action and testpmd. Thanks, Paolo