Re: When should we use likely() / unlikely() / get_unaligned() ?

From: David S. Miller
Date: Sun Feb 08 2004 - 18:13:07 EST


On Mon, 09 Feb 2004 10:00:47 +1100
Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote:

> Um, we do? I thought it was compulsory in the kernel, otherwise
> networking breaks on packets w/ wierd hardware headers.

That's right, for the old old ARMs they've always been broken
with certain types of encapsulations due to this. Even just feed
them certain kinds of odd TCP/IP option sequences and watch the
packet handling work on corrupted header data on such older ARMs.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/