From: Francois Romieu Date: Wed, 26 Dec 2007 21:46:05 +0000 (+0100) Subject: r8169: multicast register update (sync with Realtek's 8.004.00 8168 driver) X-Git-Tag: v2.6.27-rc1~969^2~235^2~16^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1087f4f4af302e6e2fa40dd741f306444d90bece;p=linux-2.6-omap-h63xx.git r8169: multicast register update (sync with Realtek's 8.004.00 8168 driver) The layout of the 8168 serie is different from that of the 8110 one. Signed-off-by: Francois Romieu Cc: Edward Hsu --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 65724250462..9086e819d74 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -3098,8 +3098,10 @@ static void rtl_set_rx_mode(struct net_device *dev) (tp->mac_version == RTL_GIGA_MAC_VER_15) || (tp->mac_version == RTL_GIGA_MAC_VER_16) || (tp->mac_version == RTL_GIGA_MAC_VER_17)) { - mc_filter[0] = 0xffffffff; - mc_filter[1] = 0xffffffff; + u32 data = mc_filter[0]; + + mc_filter[0] = swab32(mc_filter[1]); + mc_filter[1] = swab32(data); } RTL_W32(MAR0 + 0, mc_filter[0]);