diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2007-12-26 16:46:05 -0500 |
---|---|---|
committer | Francois Romieu <romieu@electric-eye.fr.zoreil.com> | 2008-06-29 09:08:28 -0400 |
commit | 1087f4f4af302e6e2fa40dd741f306444d90bece (patch) | |
tree | 8831f43bee51fdf628e61fecce76476b3f9427af /drivers/net/r8169.c | |
parent | be0976be9148f31ee0d1997354c3e30ff8d07587 (diff) |
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 <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 657242504621..9086e819d742 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) | |||
3098 | (tp->mac_version == RTL_GIGA_MAC_VER_15) || | 3098 | (tp->mac_version == RTL_GIGA_MAC_VER_15) || |
3099 | (tp->mac_version == RTL_GIGA_MAC_VER_16) || | 3099 | (tp->mac_version == RTL_GIGA_MAC_VER_16) || |
3100 | (tp->mac_version == RTL_GIGA_MAC_VER_17)) { | 3100 | (tp->mac_version == RTL_GIGA_MAC_VER_17)) { |
3101 | mc_filter[0] = 0xffffffff; | 3101 | u32 data = mc_filter[0]; |
3102 | mc_filter[1] = 0xffffffff; | 3102 | |
3103 | mc_filter[0] = swab32(mc_filter[1]); | ||
3104 | mc_filter[1] = swab32(data); | ||
3103 | } | 3105 | } |
3104 | 3106 | ||
3105 | RTL_W32(MAR0 + 0, mc_filter[0]); | 3107 | RTL_W32(MAR0 + 0, mc_filter[0]); |