Re: multicast hash incorrect on big endian archs

From: David S. Miller (davem@redhat.com)
Date: Mon Jun 04 2001 - 05:54:42 EST


Manfred Spraul writes:
> That could cause alignment problems.
> <<< from starfire.c
> {
> long filter_addr;
> u16 mc_filter[32] __attribute__ ((aligned(sizeof(long))));
> <<<
> set_bit requires word alignment, but without the __attibute__ the
> compiler would only guarantee 16-bit alignment. IMHO ugly.

Correction, it requires "long" alignment and that is 64-bits
on several platforms.

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/



This archive was generated by hypermail 2b29 : Thu Jun 07 2001 - 21:00:27 EST