Commit 8fee5f51a56aa7a67d955993572a2ae05d31a2c6
Committed by
Jeff Garzik
1 parent
adf6e00064
Exists in
master
and in
39 other branches
[PATCH] sis190.c: fix multicast MAC filter
Here is a patch that changes the way the MAC filter is computed for the multicast addresses. The computation is taken from the SiS GPL driver. This patch is necessary to get IPv6 working. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/net/sis190.c
... | ... | @@ -842,7 +842,7 @@ |
842 | 842 | for (i = 0, mclist = dev->mc_list; mclist && i < dev->mc_count; |
843 | 843 | i++, mclist = mclist->next) { |
844 | 844 | int bit_nr = |
845 | - ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26; | |
845 | + ether_crc(ETH_ALEN, mclist->dmi_addr) & 0x3f; | |
846 | 846 | mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); |
847 | 847 | rx_mode |= AcceptMulticast; |
848 | 848 | } |