Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3777400pxv; Mon, 28 Jun 2021 12:36:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC3wc6IWzpUHXLTp6Ylr6eyCyBhdkbHaOA+6a8UguGjDItBBC/R9kXOP6X3k7DZuhmwc6o X-Received: by 2002:a92:c5c2:: with SMTP id s2mr18470954ilt.164.1624908986634; Mon, 28 Jun 2021 12:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624908986; cv=none; d=google.com; s=arc-20160816; b=i8is6TtUhXN1AY36CMqHwxtsPUJ7qb7XaTsubDa6Qs3BVXxBbhAgEWxkp3vFkbsvPE fGdYYzN8834CtloO0X1DFFGcdBKMeMSXHmJeHDTaZqv1F7/x92iEddpLYqsCW/pS1kg8 NkW2B4G1cpJtdloV9JXXJWVmRWPKo4QKfvLazHf5XTNPpqih73E90o8LZNwdZYxnXDcH NkZDnGVIFMZJZHD77PyFAH9ym4VNn3dYC7+8Y9LZ/8hNRopV/BzR4QCwD7Dps4Ik6qA2 RsVxx7JP1Ol2MX2XAtyprsmIjeKoHEPLtIOdiZ99uU2Zvlpr+C/0Kr0vW5sjG4DGJ5Pn 1Trw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PwVpLj5Sv2w0b91CRktYUf2P+lepHs7mEuizKs6vAGs=; b=F/MldR0zqNX90DgQdcEZXIP6nXswG6QUpZbtfIMsmB9w8rapQFGrq8Hw+P4EyxqgNA KPK5VgYkMPnk7xn5EOS25ugcLhdJ8MOrp4nGn3UFZEC/fNKS3Sjb0rk6lkyLNvE6kyQc 16S0xAfMceHdulKhvjBYVx3F14vlGxOHrO6qBniYP62VDTqGKT/mU2XWHZB9bUBgC3i/ wbZl2ToPS4dp9jR+y7bkapI3BeMPMkUEWKCRV/q2+eFu1yyiNpIhJzpZ9cK2D7y50fsg tQ9eb3YaD9aipFjDQ+xIqAwLoGvkPso3/svA1KMH2CXMAsJGwTPxZAAiAvclGA07+EnG AY3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YGMz7D1Z; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si12973902ioh.19.2021.06.28.12.36.13; Mon, 28 Jun 2021 12:36:26 -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=k20201202 header.b=YGMz7D1Z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236965AbhF1O43 (ORCPT + 99 others); Mon, 28 Jun 2021 10:56:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:51700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234768AbhF1OmF (ORCPT ); Mon, 28 Jun 2021 10:42:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB8DC613CB; Mon, 28 Jun 2021 14:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624890816; bh=Nwg7DbIKZCwUgWINjEGLs4XoRt4oVYmFHZsO75CeeIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YGMz7D1ZX73wjTen2d3XSY+0GIkvtqQqsK+VqbnWDH7K1ACWb+mAz41uTjFIrKxrO An0SElNSQaGqur/ngOG/yjZQcsmfcWaAUeXb9dzkrbO5Rw7NkbysPKYt1lzvN/KhHb N3FmuehqvFMn0TTtcNSOTQuZ6AIH/vOKRBBbr4spGAqJUXVUq1kCdhNUpe46SljeYZ c94aXLRiVdPliNuy0u+J4AmxqG4Mayi5V9Z/CzooQxJzNTaHg/rCmWC9ugId5sI+M8 f/Tzs64l/CtYdU71cgFOny9MfaHCM7kK7dctyD+qtflkTNzv8jmyMhJQktjGRbjPVs BnFYUOb9sRauQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Aya Levin , Tariq Toukan , Saeed Mahameed , Sasha Levin Subject: [PATCH 4.19 032/109] net/mlx5e: Block offload of outer header csum for UDP tunnels Date: Mon, 28 Jun 2021 10:31:48 -0400 Message-Id: <20210628143305.32978-33-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143305.32978-1-sashal@kernel.org> References: <20210628143305.32978-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.196-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.19.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.19.196-rc1 X-KernelTest-Deadline: 2021-06-30T14:32+00:00 X-stable: review X-Patchwork-Hint: Ignore 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 51edc507b7b5..9003702892cd 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -4679,11 +4679,8 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev) } if (mlx5_vxlan_allowed(mdev->vxlan)) { - 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->hw_features |= NETIF_F_GSO_UDP_TUNNEL; + netdev->hw_enc_features |= NETIF_F_GSO_UDP_TUNNEL; } if (MLX5_CAP_ETH(mdev, tunnel_stateless_gre)) { -- 2.30.2