From: Aurelien Jarno <aurelien@aurel32.net>
To: Francois Romieu <romieu@fr.zoreil.com>, linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.14-rc3] sis190.c: fix multicast MAC filter
Date: Wed, 5 Oct 2005 22:33:50 +0200 [thread overview]
Message-ID: <20051005203350.GA3096@farad.aurel32.net> (raw)
Hi,
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.
Thanks,
Aurelien
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
--- linux-2.6.14-rc3-git4.orig/drivers/net/sis190.c 2005-10-05 22:06:51.000000000 +0200
+++ linux-2.6.14-rc3-git4/drivers/net/sis190.c 2005-10-05 22:12:05.000000000 +0200
@@ -842,7 +842,7 @@
for (i = 0, mclist = dev->mc_list; mclist && i < dev->mc_count;
i++, mclist = mclist->next) {
int bit_nr =
- ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26;
+ ether_crc(ETH_ALEN, mclist->dmi_addr) & 0x3f;
mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31);
rx_mode |= AcceptMulticast;
}
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
next reply other threads:[~2005-10-05 20:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 20:33 Aurelien Jarno [this message]
2005-10-05 21:05 ` [PATCH 2.6.14-rc3] sis190.c: fix multicast MAC filter Francois Romieu
2005-10-05 21:28 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051005203350.GA3096@farad.aurel32.net \
--to=aurelien@aurel32.net \
--cc=linux-kernel@vger.kernel.org \
--cc=romieu@fr.zoreil.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox