Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4360809pxu; Mon, 12 Oct 2020 17:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYjZyK4SAulA+HniN1ShVORnrVQ0cgISl911SIjLaw4WN8VbrFDUf8kgHdW8c7ddTxwy7J X-Received: by 2002:a17:906:c407:: with SMTP id u7mr19869849ejz.206.1602549221365; Mon, 12 Oct 2020 17:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602549221; cv=none; d=google.com; s=arc-20160816; b=fxuF+NnzLm1h1/43mdO31CY8ISNL1Hfx0IeIZcx6J2CIBW4njo7BjrHp8XYU3NayG4 dp1MYu0mAUjieEtu+5d5pz5C6XZRhK3krBkq/bKQjSNWz0Jf/4aaIMhUL9REe/8O86Ma 1MCkbw4kLycuLlTdH7bWmjl2iWswEN6O6BRcb84jrl8nvVtsW6qhPT+DtHoIyoOveINl xPqK2lJlpUIrJKRb0C4wjfvDLbJ2GdONNZ/y661b9O01tfDGlmJI3lsQOxMzsyA0+Ujm rsR/BK35vFxKnr5nhptb3AMzzlBSGuPwB1fWojbDdO2y/PcX9v9pVcHx/tyaL2B9VDQq 9Cxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pnLMC5bVMw3AI9dCjLeZefNOfPUHvef1N7KTjND/Lag=; b=br/8GSGLYClZMgQVB4JALTjOWwWuGErRGq6NGa4hNDsVg6QFrNnkrDXuZSXIicbDUS rTkAoSBQspWzbr5pefOmHkmM18v/RUjEXsVzHrp0MQBqywJySiQn/5rTWEpYTZi04Kqq TdImX4t7yDaIYEUFlTEcnI4+SFjZ7JpVnG9KNZYnwNJX8tJvS2WFGyJe8Lt9iuMMPey0 JEYvZTI1NAEm/sgqNYcn62GmCn7YHEZ6YTfp+fg0Oj90h3cAPw6S5rnJoKtyERBp46BK h2lgh6PPV8pVOETy1WtWNpq6ZW0dwgi9/88jqa6UvlWq9MWpyzjrpPpUogk3VbYD6tnk mGIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qzI1s+GW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si5209979eds.499.2020.10.12.17.33.17; Mon, 12 Oct 2020 17:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qzI1s+GW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390242AbgJLNxR (ORCPT + 99 others); Mon, 12 Oct 2020 09:53:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:54092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731545AbgJLNrG (ORCPT ); Mon, 12 Oct 2020 09:47:06 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6732521BE5; Mon, 12 Oct 2020 13:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602510396; bh=tLPhuI9Wok5mWi/FhO8nCAIuI91Q9PkZIJNv7eWFK1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qzI1s+GWTC13HHlW01P5ruZQCqeXdVwXsHjgKVcTH7ineybYAaKonR8YzUlyfq4hx wZb0wjZZC97S6vE9xkEkyls2BHO9IUAiCI5O1fA4cDJyEsFDd3ThRW/q9nGCyNC3Qv rTmxZycdBCpTI2IGj+L4xVB9yhpdPurium5AyBDU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geetha sowjanya , Sunil Goutham , "David S. Miller" , Sasha Levin Subject: [PATCH 5.8 080/124] octeontx2-pf: Fix TCP/UDP checksum offload for IPv6 frames Date: Mon, 12 Oct 2020 15:31:24 +0200 Message-Id: <20201012133150.732059486@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012133146.834528783@linuxfoundation.org> References: <20201012133146.834528783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geetha sowjanya [ Upstream commit 89eae5e87b4fa799726a3e8911c90d418cb5d2b1 ] For TCP/UDP checksum offload feature in Octeontx2 expects L3TYPE to be set irrespective of IP header checksum is being offloaded or not. Currently for IPv6 frames L3TYPE is not being set resulting in packet drop with checksum error. This patch fixes this issue. Fixes: 3ca6c4c88 ("octeontx2-pf: Add packet transmission support") Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c index b04f5429d72d9..334eab976ee4a 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c @@ -524,6 +524,7 @@ static void otx2_sqe_add_hdr(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, sqe_hdr->ol3type = NIX_SENDL3TYPE_IP4_CKSUM; } else if (skb->protocol == htons(ETH_P_IPV6)) { proto = ipv6_hdr(skb)->nexthdr; + sqe_hdr->ol3type = NIX_SENDL3TYPE_IP6; } if (proto == IPPROTO_TCP) -- 2.25.1