Re: multicast hash incorrect on big endian archs

David S. Miller (davem@redhat.com)
Sun, 3 Jun 2001 19:24:18 -0700 (PDT)


Manfred Spraul writes:
> I noticed that the multicast hash calculations assumed little endian
> byte ordering in the winbond-840 driver, and it seems that several other
> drivers are also affected:
>
> 8139too, epic100, fealnx, pci-skeleton, sis900, starfile, sundance,
> via-rhine, yellowfin
> perhaps drivers/net/pcmcia/xircom_tulip_cb

Many big-endian systems already need to provide little-endian bitops,
for ext2's sake for example.

We should formalize this, with {set,clear,change,test}_le_bit which
technically every port has implemented in some for or another already.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/