From nobody Thu Nov 28 20:07:28 2024 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72BCE1922F4; Mon, 30 Sep 2024 16:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727712591; cv=none; b=iwnqvaqxKP5F8yUuwH4p/xXE5MFkoOfDK2Pp5ZrEu78zR/wS4j7Nq1a/yH2lugQ4+rbcBUvbWitW3QMhq7vTHLRAhv1tUk5Oys10a1L9wUhwNt1y3MgpxKqOnCM1HFykfV2BwKg9amkgj+z6AjAA2FN5c1Xxf7ULO0djWDtXCmo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727712591; c=relaxed/simple; bh=NLRrnUgBL5yvzPIt2Dg9DD5t/P1ZIP0tT5LYkDscvYA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=g9Oxd3895Zv4gVPv0kVfLp1UkwYNzFqZU6a8gxlXG6vV3HLSNl/cDB+uWgNVPYTH5yVkbuUS61hHdZmWQZ7ebH2Hu9j+DvChjq2B642xplTWqON4dXg4E7ZxUqs+qZOQQoqY6Af2vGOWh80JMpxZkyJBhG0MGZGZjBWQPN0GNZo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pbarker.dev; spf=fail smtp.mailfrom=pbarker.dev; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pbarker.dev Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=pbarker.dev X-IronPort-AV: E=Sophos;i="6.11,166,1725289200"; d="scan'208";a="220371970" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 01 Oct 2024 01:09:48 +0900 Received: from GBR-5CG2373LKG.adwin.renesas.com (unknown [10.226.93.43]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 2F9224014DD8; Tue, 1 Oct 2024 01:09:35 +0900 (JST) From: Paul Barker To: Sergey Shtylyov , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Paul Barker , Geert Uytterhoeven , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Biju Das , Claudiu Beznea , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net-next PATCH 08/11] net: ravb: Support ICMP TX checksum offload for GbEth Date: Mon, 30 Sep 2024 17:08:42 +0100 Message-Id: <20240930160845.8520-9-paul@pbarker.dev> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240930160845.8520-1-paul@pbarker.dev> References: <20240930160845.8520-1-paul@pbarker.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Paul Barker This aligns TX capabilities with RX capabilities. Signed-off-by: Paul Barker Reviewed-by: Sergey Shtylyov --- drivers/net/ethernet/renesas/ravb.h | 2 +- drivers/net/ethernet/renesas/ravb_main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/ren= esas/ravb.h index a5b4f4fe77b1..ef24d9f26a2e 100644 --- a/drivers/net/ethernet/renesas/ravb.h +++ b/drivers/net/ethernet/renesas/ravb.h @@ -998,7 +998,7 @@ enum CSR1_BIT { CSR1_TDHD =3D 0x08000000, }; =20 -#define CSR1_CSUM_ENABLE (CSR1_TTCP4 | CSR1_TUDP4) +#define CSR1_CSUM_ENABLE (CSR1_TTCP4 | CSR1_TUDP4 | CSR1_TICMP4) =20 enum CSR2_BIT { CSR2_RIP4 =3D 0x00000001, diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/etherne= t/renesas/ravb_main.c index ae0268f2eb04..69d71fbf3e02 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -2076,6 +2076,7 @@ static bool ravb_can_tx_csum_gbeth(struct sk_buff *sk= b) switch (ip->protocol) { case IPPROTO_TCP: case IPPROTO_UDP: + case IPPROTO_ICMP: return true; =20 default: --=20 2.43.0