Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3922820pxj; Mon, 21 Jun 2021 09:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFkbCuQ90OUKITTcYBEoknieR6w919pC4Iykjod9jFevBTNeXQx0+UNFj4HUR4UsuKWIJw X-Received: by 2002:aa7:d74b:: with SMTP id a11mr14499222eds.40.1624292812425; Mon, 21 Jun 2021 09:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292812; cv=none; d=google.com; s=arc-20160816; b=hxrFzbWC5R7pSp4ruRc3LdT5IzfYjdVP1VexiuDB1K6UkA+mFgTjLHFf6jGixTr3QQ 9zW8s5DOnoQjg+Djm4IkU8OtH5dfRGq7spT9B5NBKw2Fuptd4MfGmmtY45lpAwORXuGG BD7ue5KaYlpYw4QsZ8a77AAVjTxLkTbDD9UE6eNbg3hDuOK4T8tvepkihlmuKy8oxsU6 q4m5xrlN19a1zyqyw9NbDWKMJcf8Is38z/qFxi4J2cIYcNPQCpNx7MCeNyTLbXeWHMBc 9L0h6v5CHCxdqZd47Gw5ndoAcjaO0lBOrLF5/uaP/XNn96megzM0Hnygxn7Zwxwvb6oi nd6A== 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=I0McEHmlqWRoa5BIyWDnYew9t8xOO56HVt/mEdhZ1zo=; b=ayCfvY6jyQRnDDf27apR9zbk8e2AKy1rsrKOTaIvcf1qZouML9c8XPO/isOqeZ0NLS iQbGwiXwYs1mxNiHVlZp6xoHpzxtrEgxLFDWzdRSUbxfWPKClf0VIQRSPgSvXeoLdDvv pOBgTx19lf31XWSIe9DOM8SJSgXEFA80VgzYfPP0Yl3tjSQf7eboKw+qtruYb8K51dNg JItVAsNp9AO0tv+t+3GIu9QpsLNTDb4rb7897JUm0w2qwhN7iS5NE6jY9qY0rTrLgi1I +xkonoaxqrJts0//jhk2ctpH4Y6V4nobFeOCHLoYMB6Xiy2HpKq7r4NAKWgVuFV7GrYD nV2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m4+vigPB; 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=pass (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 21si11138695ejc.413.2021.06.21.09.26.28; Mon, 21 Jun 2021 09:26:52 -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=@linuxfoundation.org header.s=korg header.b=m4+vigPB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231288AbhFUQ1r (ORCPT + 99 others); Mon, 21 Jun 2021 12:27:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:48194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbhFUQ0B (ORCPT ); Mon, 21 Jun 2021 12:26:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 03402613C1; Mon, 21 Jun 2021 16:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292529; bh=T1FKjeiXzn7t4vZ0WJ/akKPVTTpnjOBDTccC6E2CKGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m4+vigPBWY4KZzl1l589TE0Zdnkl4WVXFOL4tEmy/e4JsI/nwYbLNzQ50o31dUuXD 3eTjF7H86bg4viJeahwD8ZaphuXLxPbWrpSStkE2HwNJ0mwZEtoCWmfurV2gUdoFjH qAHD4gnYcXIWasUp4g0zoSD9vWariSfPcnaH0yUo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aya Levin , Tariq Toukan , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.10 033/146] net/mlx5e: Block offload of outer header csum for UDP tunnels Date: Mon, 21 Jun 2021 18:14:23 +0200 Message-Id: <20210621154912.420288004@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@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: Aya Levin [ Upstream commit 6d6727dddc7f93fcc155cb8d0c49c29ae0e71122 ] The device is able to offload either the outer header csum or inner header csum. The driver utilizes the inner csum offload. Hence, block setting of tx-udp_tnl-csum-segmentation and set it to off[fixed]. Fixes: b49663c8fb49 ("net/mlx5e: Add support for UDP tunnel segmentation with outer checksum offload") Signed-off-by: Aya Levin Reviewed-by: Tariq Toukan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index f18b52be32e9..d81fa8e56199 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -4958,13 +4958,9 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev) } if (mlx5_vxlan_allowed(mdev->vxlan) || mlx5_geneve_tx_allowed(mdev)) { - netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; - netdev->hw_enc_features |= NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; - netdev->gso_partial_features = NETIF_F_GSO_UDP_TUNNEL_CSUM; - netdev->vlan_features |= NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; + netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL; + netdev->hw_enc_features |= NETIF_F_GSO_UDP_TUNNEL; + netdev->vlan_features |= NETIF_F_GSO_UDP_TUNNEL; } if (mlx5e_tunnel_proto_supported(mdev, IPPROTO_GRE)) { -- 2.30.2