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 2CC91430BF for ; Mon, 21 Aug 2023 10:03:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F30F42D0C; Mon, 21 Aug 2023 10:03:20 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 28FC840EE3 for ; Mon, 21 Aug 2023 10:03:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692604997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EeMMis3hfZfck1Miffzlj0NHGT8NjPYH1oDb2X3bmAk=; b=Vbo+NIJruwFwd+ZUwtWI8tOOir2hd3x28EHwqbjbJv8qBIUibhJlegR3o1laqX2pDAymKB HTUXblR9WxnaliVSizWi7+u3JBzaE9mxJ7Vgb+XMMHsxYTFCvzk9WmixuZe/M/Ai4RY2fZ fJT+qr2LKLW4uukqzpUn+6aWgCNhlDg= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-416-i-GKJI5YOTCBHisdvB9SLg-1; Mon, 21 Aug 2023 04:03:15 -0400 X-MC-Unique: i-GKJI5YOTCBHisdvB9SLg-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-9a0955ac1dcso172953466b.0 for ; Mon, 21 Aug 2023 01:03:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692604994; x=1693209794; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EeMMis3hfZfck1Miffzlj0NHGT8NjPYH1oDb2X3bmAk=; b=DJ5SMvL24y2lelaVm3m2uI6Ik1gXE9KTy78eIUPGbH3PSo0EzN0BHwBXT+sboV4zZ0 meyaZ2SQV3bLzIf0GCdada8SFgEai9oYzJxXp9wyvcNnZkKt1B+KL7egWdAAwWXJurxi dMn0/CsyZf+fENIfxgLW3MpVViLest4pcHCQeKD59wHq5fri4AsBGzmbr8uUWFUuI2i0 qMRz8VOiYGUvFbEkOb1zwFokZiTC07YCd0byEq83GwFFUzkv1TxSsC56JbP9AJQRAWrT J9+U2ML2od+x+8jOD1Wh0BxTcIsVI1rKXkByXS2x7SoFyTKEZHqBeEVcsD/8WEwRzap4 tV1g== X-Gm-Message-State: AOJu0Yy2aF7oElxfThYDib5UmRcPtZg3ZXDZcyFTaCgIMfE9I60RYQ0I CQMeX1HW5QUO2oRdUyHrqzFL1uj/eeChA1Dz35j+HI/y4qJ42jkMib2PqLMMWAczyMnYVpXXMaK 3AuJ9exY= X-Received: by 2002:a17:906:20d7:b0:994:54fd:31aa with SMTP id c23-20020a17090620d700b0099454fd31aamr4378020ejc.15.1692604994634; Mon, 21 Aug 2023 01:03:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQURgB/GO321okUxe6AeHXRT54pTBy1b+erd1AhvNeTpCkwQ4d33NfRFPmR7O2alY2TPyZJg== X-Received: by 2002:a17:906:20d7:b0:994:54fd:31aa with SMTP id c23-20020a17090620d700b0099454fd31aamr4377992ejc.15.1692604994219; Mon, 21 Aug 2023 01:03:14 -0700 (PDT) Received: from [10.39.193.64] (5920ab7b.static.cust.trined.nl. [89.32.171.123]) by smtp.gmail.com with ESMTPSA id le26-20020a170907171a00b0099316c56db9sm6077746ejc.127.2023.08.21.01.03.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2023 01:03:13 -0700 (PDT) From: Eelco Chaudron To: David Marchand Cc: dev@dpdk.org, mkp@redhat.com, stable@dpdk.org, Jingjing Wu , Beilei Xing , Declan Doherty , Abhijit Sinha , Radu Nicolau Subject: Re: [PATCH] net/iavf: fix checksum offloading Date: Mon, 21 Aug 2023 10:03:11 +0200 X-Mailer: MailMate (1.14r5964) Message-ID: <59C4371C-6702-4704-ACAA-048794EA3A42@redhat.com> In-Reply-To: <20230818090351.2402519-1-david.marchand@redhat.com> References: <20230818090351.2402519-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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 On 18 Aug 2023, at 11:03, David Marchand wrote: > The only presence of RTE_MBUF_F_TX_IPV4 can't be used as an indicator > that a checksum offload has been requested by an application. > Check that RTE_MBUF_F_TX_IP_CKSUM or others flags have been set. > > Fixes: 1e728b01120c ("net/iavf: rework Tx path") > Cc: stable@dpdk.org Thanks for fixing this David! I tested and reviewed this change and it works now. Tested-by: Eelco Chaudron Acked-by: Eelco Chaudron > Signed-off-by: David Marchand > --- > drivers/net/iavf/iavf_rxtx.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c > index f7df4665d1..b9e2879764 100644 > --- a/drivers/net/iavf/iavf_rxtx.c > +++ b/drivers/net/iavf/iavf_rxtx.c > @@ -2652,6 +2652,9 @@ iavf_build_data_desc_cmd_offset_fields(volatile uint64_t *qw1, > offset |= (m->l2_len >> 1) > << IAVF_TX_DESC_LENGTH_MACLEN_SHIFT; > > + if ((m->ol_flags & IAVF_TX_CKSUM_OFFLOAD_MASK) == 0) > + goto skip_cksum; > + > /* Enable L3 checksum offloading inner */ > if (m->ol_flags & RTE_MBUF_F_TX_IP_CKSUM) { > if (m->ol_flags & RTE_MBUF_F_TX_IPV4) { > @@ -2702,6 +2705,7 @@ iavf_build_data_desc_cmd_offset_fields(volatile uint64_t *qw1, > break; > } > > +skip_cksum: > *qw1 = rte_cpu_to_le_64((((uint64_t)command << > IAVF_TXD_DATA_QW1_CMD_SHIFT) & IAVF_TXD_DATA_QW1_CMD_MASK) | > (((uint64_t)offset << IAVF_TXD_DATA_QW1_OFFSET_SHIFT) & > -- > 2.41.0