Skip to contentSkip to conversation

net: r8169: Disable multicast filter for RTL8168H and RTL8107E

PATCH Applied Patrick Thompson 4 participants 4 messages Oct 30, 2023 – Nov 2, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 net: r8169: Disable multicast filter for RTL8168H and RTL8107E

RTL8168H and RTL8107E ethernet adapters erroneously filter unicast eapol packets unless allmulti is enabled. These devices correspond to RTL_GIGA_MAC_VER_46 and VER_48. Add an exception for VER_46 and VER_48 in the same way that VER_35 has an exception.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

---

Changes in v3:
- disable mc filter for VER_48
- update description

Changes in v2:
- add Fixes tag
- add net annotation
- update description

 drivers/net/ethernet/realtek/r8169_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/realtek/r8169_main.c +3 -1
index 361b90007148b..c92286926a1b5 100644
@@ -2584,7 +2584,9 @@ static void rtl_set_rx_mode(struct net_device *dev)
 		rx_mode |= AcceptAllPhys;
 	} else if (netdev_mc_count(dev) > MC_FILTER_LIMIT ||
 		   dev->flags & IFF_ALLMULTI ||
-		   tp->mac_version == RTL_GIGA_MAC_VER_35) {
+		   tp->mac_version == RTL_GIGA_MAC_VER_35 ||
+		   tp->mac_version == RTL_GIGA_MAC_VER_46 ||
+		   tp->mac_version == RTL_GIGA_MAC_VER_48) {
 		/* accept all multicasts */
 	} else if (netdev_mc_empty(dev)) {
 		rx_mode &= ~AcceptMulticast;
Signature · 1 line
2.42.0.820.g83a721a137-goog
Reviewed-by on v3 1/1
#1 lore raw
Quoted 9 lines · Patrick Thompson

RTL8168H and RTL8107E ethernet adapters erroneously filter unicast eapol packets unless allmulti is enabled. These devices correspond to RTL_GIGA_MAC_VER_46 and VER_48. Add an exception for VER_46 and VER_48 in the same way that VER_35 has an exception.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

---

Quoted 9 lines

Changes in v3:
- disable mc filter for VER_48
- update description

Changes in v2:
- add Fixes tag
- add net annotation
- update description

maintainer Reviewed-by on v3 1/1
#2 lore raw
In reply to Patrick Thompson
Quoted 9 lines · Patrick Thompson

RTL8168H and RTL8107E ethernet adapters erroneously filter unicast eapol packets unless allmulti is enabled. These devices correspond to RTL_GIGA_MAC_VER_46 and VER_48. Add an exception for VER_46 and VER_48 in the same way that VER_35 has an exception.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

---

Quoted 9 lines

Changes in v3:
- disable mc filter for VER_48
- update description

Changes in v2:
- add Fixes tag
- add net annotation
- update description

#3 lore raw
In reply to Patrick Thompson
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 9 lines · On Mon, 30 Oct 2023 16:50:14 -0400 you wrote:

RTL8168H and RTL8107E ethernet adapters erroneously filter unicast eapol packets unless allmulti is enabled. These devices correspond to RTL_GIGA_MAC_VER_46 and VER_48. Add an exception for VER_46 and VER_48 in the same way that VER_35 has an exception.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

[...]

Here is the summary with links:
- [v3] net: r8169: Disable multicast filter for RTL8168H and RTL8107E

    https://git.kernel.org/netdev/net/c/efa5f1311c49

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html