r8169: allow multicast packets on sub-8168f chipset.
authorNathan Walp <faceprint@faceprint.com>
Thu, 1 Nov 2012 12:08:47 +0000 (12:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 19:27:07 +0000 (15:27 -0400)
RTL_GIGA_MAC_VER_35 includes no multicast hardware filter.

Signed-off-by: Nathan Walp <faceprint@faceprint.com>
Suggested-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c

index eb6a5e4ca4c875be82e976484ebcd53b4453e614..927aa33d43497eae636a6d3b4a0e93e15fc93b27 100644 (file)
@@ -4521,6 +4521,9 @@ static void rtl_set_rx_mode(struct net_device *dev)
                mc_filter[1] = swab32(data);
        }
 
+       if (tp->mac_version == RTL_GIGA_MAC_VER_35)
+               mc_filter[1] = mc_filter[0] = 0xffffffff;
+
        RTL_W32(MAR0 + 4, mc_filter[1]);
        RTL_W32(MAR0 + 0, mc_filter[0]);