* [3/3][PATCH 2.4] via-rhine: fix mc_filter on big-endian arch
@ 2004-06-06 16:53 Roger Luethi
0 siblings, 0 replies; only message in thread
From: Roger Luethi @ 2004-06-06 16:53 UTC (permalink / raw)
To: Jeff Garzik, Andrew Morton; +Cc: netdev
A.J. from VIA Networking Technologies noticed that via-rhine is using
cpu_to_le32() when preparing mc_filter hashes. This breaks Rhine hardware
multicast filters on big-endian architectures.
Please apply.
Signed-off-by: Roger Luethi <rl@hellgate.ch>
--- 2.4-pre/drivers/net/via-rhine.c.orig 2004-06-06 18:12:07.825350069 +0200
+++ 2.4-pre/drivers/net/via-rhine.c 2004-06-06 18:08:45.834623930 +0200
@@ -1748,7 +1748,7 @@
i++, mclist = mclist->next) {
int bit_nr = ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26;
- mc_filter[bit_nr >> 5] |= cpu_to_le32(1 << (bit_nr & 31));
+ mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31);
}
writel(mc_filter[0], ioaddr + MulticastFilter0);
writel(mc_filter[1], ioaddr + MulticastFilter1);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-06 16:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-06 16:53 [3/3][PATCH 2.4] via-rhine: fix mc_filter on big-endian arch Roger Luethi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.