patch 'net/r8169: fix bitmask logic for RTL8127' has been queued to stable release 25.11.1

Kevin Traynor ktraynor at redhat.com
Thu Feb 26 14:10:21 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/02/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/6479c7a13a70d5a4e2e6b577f4719379a0788636

Thanks.

Kevin

---
>From 6479c7a13a70d5a4e2e6b577f4719379a0788636 Mon Sep 17 00:00:00 2001
From: Howard Wang <howard_wang at realsil.com.cn>
Date: Fri, 13 Feb 2026 11:20:18 +0800
Subject: [PATCH] net/r8169: fix bitmask logic for RTL8127

[ upstream commit 972a46ca1ccf06adb7de2e5f286176310c4c71bb ]

Fix incorrect bitwise operation (used & instead of &~) when setting
RTL8127 1G and 10G capabilities.

Fixes: 8d9c29c2de93 ("net/r8169: support RTL8127ATF serdes interface")

Signed-off-by: Howard Wang <howard_wang at realsil.com.cn>
---
 drivers/net/r8169/r8169_fiber.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/r8169/r8169_fiber.c b/drivers/net/r8169/r8169_fiber.c
index 9108fa6bba..d64403f3ce 100644
--- a/drivers/net/r8169/r8169_fiber.c
+++ b/drivers/net/r8169/r8169_fiber.c
@@ -114,5 +114,5 @@ rtl8127_set_sds_phy_caps_1g_8127(struct rtl_hw *hw)
 
 	val = RTL_R16(hw, 0x233E);
-	val &= (BIT_13 | BIT_12 | BIT_1 | BIT_0);
+	val &= ~(BIT_13 | BIT_12 | BIT_1 | BIT_0);
 	val |= BIT_1;
 	RTL_W16(hw, 0x233E, val);
@@ -143,5 +143,5 @@ rtl8127_set_sds_phy_caps_10g_8127(struct rtl_hw *hw)
 
 	val = RTL_R16(hw, 0x233E);
-	val &= (BIT_13 | BIT_12 | BIT_1 | BIT_0);
+	val &= ~(BIT_13 | BIT_12 | BIT_1 | BIT_0);
 	val |= BIT_12;
 	RTL_W16(hw, 0x233E, val);
-- 
2.53.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-02-26 10:16:52.466651394 +0000
+++ 0139-net-r8169-fix-bitmask-logic-for-RTL8127.patch	2026-02-26 10:16:47.210460370 +0000
@@ -1 +1 @@
-From 972a46ca1ccf06adb7de2e5f286176310c4c71bb Mon Sep 17 00:00:00 2001
+From 6479c7a13a70d5a4e2e6b577f4719379a0788636 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 972a46ca1ccf06adb7de2e5f286176310c4c71bb ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 8533ade15e..caad868cf5 100644
+index 9108fa6bba..d64403f3ce 100644
@@ -21 +22 @@
-@@ -120,5 +120,5 @@ rtl8127_set_sds_phy_caps_1g_8127(struct rtl_hw *hw)
+@@ -114,5 +114,5 @@ rtl8127_set_sds_phy_caps_1g_8127(struct rtl_hw *hw)
@@ -28 +29 @@
-@@ -154,5 +154,5 @@ rtl8127_set_sds_phy_caps_10g_8127(struct rtl_hw *hw)
+@@ -143,5 +143,5 @@ rtl8127_set_sds_phy_caps_10g_8127(struct rtl_hw *hw)



More information about the stable mailing list