net: use jump_label for netstamp_needed
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 15 Nov 2011 04:12:55 +0000 (04:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2011 22:30:06 +0000 (17:30 -0500)
netstamp_needed seems a good candidate to jump_label conversion.

This avoids 3 conditional branches per incoming packet in fast path.

No measurable difference, given that these conditional branches are
predicted on modern cpus. Only a small icache reduction, thanks to the
unlikely() stuff.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found