On Tue, Mar 07, 2006 at 12:59:17AM +0100, Eric Dumazet wrote: > I'm not even sure this 'optimization' is valid on UP.
It can be, as branch prediction makes the test essentially free. The real answer is that it depends on the CPU, how much pressure there is on the write combining buffers and reorder buffers, etc. Something like this is almost in the noise when measured on its own, but the combined effect adds up (in this case netperf throughput increased by ~30%). I'll respin it with the fast_clear_bit() suggestion. -ben - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html