netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [0/3] mc_filter on big-endian arch
@ 2004-06-06 16:53 Roger Luethi
  2004-06-07  2:29 ` David Dillow
  2004-06-19 21:37 ` Jeff Garzik
  0 siblings, 2 replies; 12+ messages 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. I confirmed that this
breaks Rhine hardware multicast filters on big-endian architectures.

A bunch of other drivers are affected, too. I'll post a patch for
2.6 atp, winbond, and tulip_core (typhoon could be okay at first
glance). Those are entirely untested due to lack of hardware.

If the patches are ack'ed by the respective maintainers, we might want
to fix up the tulips in 2.4 as well. atp still uses set_bit in 2.4 and
is thus okay. Note: Although it's been widely popular, there is no need
to use cpu_to_le32 when converting from set_bit.

A generic hash filter calculator might be helpful. Most drivers get
it right, but the workings of the hardware mc filters and the bit
trickery in all those functions calls for at least one _documented_
version. IMHO, anyway.

Roger

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-06-19 21:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-06 16:53 [0/3] mc_filter on big-endian arch Roger Luethi
2004-06-07  2:29 ` David Dillow
2004-06-07 11:48   ` Roger Luethi
2004-06-07 11:59     ` Roger Luethi
2004-06-10  5:09       ` David Stevens
2004-06-10  5:45         ` David Stevens
2004-06-13  3:01           ` David Dillow
2004-06-10 10:20         ` Roger Luethi
2004-06-10 13:37           ` Dave Dillow
2004-06-10 22:47             ` David Stevens
2004-06-07 13:52     ` David Dillow
2004-06-19 21:37 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).