From nobody Sun Feb 8 11:06:19 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1CC1333752; Thu, 5 Feb 2026 07:15:10 +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=1770275711; cv=none; b=l+4HiKrI1LS9q608u3MhghehSkOylaMazx2yo/A4dcO7DZtNDD0lLNhi7z8UwZzn4xVH6Lcq9MdSPZEfDNCP0BlJi2ii9XkooeiK2r4T7AU3WhqfK/lL7Cdl5kUBExsuOkbUjH3fljQl+V63VQVnkMkq5xfQPFUDCg3LSc4ebHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770275711; c=relaxed/simple; bh=lWAxz5O3ynxPKCSpb8VPogMQWR7T7rstem0Ei8fOo80=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=rX/wTIh4pnWPDLqC/drownIzEfuGKS8E1blxHhmsOJVJ33iVDiTe9JWePjZgEm9RnGOnth5z1c2ML3zf5L8aNDQPQb5m7wbZegBYZMlPt7m4Sa7DmjqlMdDYMEzY17jb3s2ytBV+0Rhj+T5d77udZsjoyaFz02hkIg/FLkPmPoY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: SN1+TWOQTNCOMssdawIgmw== X-CSE-MsgGUID: FOxIt37FQiGjeAThSZqSMA== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 05 Feb 2026 16:15:09 +0900 Received: from [127.0.1.1] (unknown [10.226.78.135]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 8EE914102B68; Thu, 5 Feb 2026 16:15:06 +0900 (JST) From: Michael Dege Date: Thu, 05 Feb 2026 08:14:40 +0100 Subject: [PATCH net] net: renesas: rswitch: fix forwarding offload statemachine Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260205-fix-offloading-statemachine-v1-1-640224a531d0@renesas.com> X-B4-Tracking: v=1; b=H4sIAF9DhGkC/x3MQQqAMAwAwa9IzgbSiiJ+RTwEm2pAW2lFBPHvF o8Dyz6QJalkGKoHklyaNYYCU1cwrxwWQXXFYMl2ZKlFrzdG77fITsOC+eRTdp5XDYLGNWS6hph 6B+VwJCn5fx+n9/0AKi4ogW0AAAA= X-Change-ID: 20260205-fix-offloading-statemachine-1d301630a08d To: Yoshihiro Shimoda , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nikita Yushchenko Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Dege X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1770275705; l=1621; i=michael.dege@renesas.com; s=20251023; h=from:subject:message-id; bh=lWAxz5O3ynxPKCSpb8VPogMQWR7T7rstem0Ei8fOo80=; b=XQc9j+LzBY3TbixnkUhueneNJLEtaz0rhpmYeFM0aB3pVRyiGvsXhvUDU1kTcwoC9uh1Vcvld QslYs/Oj1hECppImoPQkUKI7KckY9to5mJwakqLzNAu2+ZKxABWDMNJ X-Developer-Key: i=michael.dege@renesas.com; a=ed25519; pk=gu1rwIcCrAxNMv2I8fIfiQvt51xzZwnQy4Ua/DscQt8= A change of the port state of one port, caused the state of another port to change. This behvior was unintended. Signed-off-by: Michael Dege --- A change of the port state of one port, caused the state of another port to change. This behvior was unintended. Fixes: b7502b1043de86967ff341819d05e09a8dbe8b2b ("net: renesas: rswitch: ad= d offloading for L2 switching") --- drivers/net/ethernet/renesas/rswitch_l2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/renesas/rswitch_l2.c b/drivers/net/ethern= et/renesas/rswitch_l2.c index 4a69ec77d69c..dcf726793bdc 100644 --- a/drivers/net/ethernet/renesas/rswitch_l2.c +++ b/drivers/net/ethernet/renesas/rswitch_l2.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 /* Renesas Ethernet Switch device driver * - * Copyright (C) 2025 Renesas Electronics Corporation + * Copyright (C) 2025 - 2026 Renesas Electronics Corporation */ =20 #include @@ -88,7 +88,8 @@ static void rswitch_update_l2_hw_forwarding(struct rswitc= h_private *priv) rdev->forwarding_requested && !rdev->forwarding_offloaded) { rswitch_change_l2_hw_offloading(rdev, true, false); - } else if (rdev->forwarding_offloaded) { + } else if (rdev->forwarding_offloaded && + !rdev->forwarding_requested) { rswitch_change_l2_hw_offloading(rdev, false, false); } } --- base-commit: f14faaf3a1fb3b9e4cf2e56269711fb85fba9458 change-id: 20260205-fix-offloading-statemachine-1d301630a08d Best regards, --=20 Michael Dege