Skip to content

Commit efa5f13

Browse files
ptf2Paolo Abeni
authored andcommitted
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: 6e1d0b8 ("r8169:add support for RTL8168H and RTL8107E") Signed-off-by: Patrick Thompson <ptf@google.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/20231030205031.177855-1-ptf@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent ff2c051 commit efa5f13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,9 @@ static void rtl_set_rx_mode(struct net_device *dev)
25842584
rx_mode |= AcceptAllPhys;
25852585
} else if (netdev_mc_count(dev) > MC_FILTER_LIMIT ||
25862586
dev->flags & IFF_ALLMULTI ||
2587-
tp->mac_version == RTL_GIGA_MAC_VER_35) {
2587+
tp->mac_version == RTL_GIGA_MAC_VER_35 ||
2588+
tp->mac_version == RTL_GIGA_MAC_VER_46 ||
2589+
tp->mac_version == RTL_GIGA_MAC_VER_48) {
25882590
/* accept all multicasts */
25892591
} else if (netdev_mc_empty(dev)) {
25902592
rx_mode &= ~AcceptMulticast;

0 commit comments

Comments
 (0)