summaryrefslogtreecommitdiffstats
path: root/fs/isofs
diff options
context:
space:
mode:
authorEric Dumazet2011-11-18 18:32:46 +0100
committerDavid S. Miller2011-11-21 22:38:08 +0100
commita2d7ec58ac09f30ab726f216827f7c7095b2a98f (patch)
tree1b733090406abc18c42308e84703dcb703e15125 /fs/isofs
parenttg3: switch to build_skb() infrastructure (diff)
downloadkernel-qcow2-linux-a2d7ec58ac09f30ab726f216827f7c7095b2a98f.tar.gz
kernel-qcow2-linux-a2d7ec58ac09f30ab726f216827f7c7095b2a98f.tar.xz
kernel-qcow2-linux-a2d7ec58ac09f30ab726f216827f7c7095b2a98f.zip
netfilter: use jump_label for nf_hooks
On configs where CONFIG_JUMP_LABEL=y, we can replace in fast path a load/compare/conditional jump by a single jump with no dcache reference. Jump target is modified as soon as nf_hooks[pf][hook] switches from empty state to non empty states. jump_label state is kept outside of nf_hooks array so has no cost on cpu caches. This patch removes the test on CONFIG_NETFILTER_DEBUG : No need to call nf_hook_slow() at all if nf_hooks[pf][hook] is empty, this didnt give useful information, but slowed down things a lot. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> CC: Patrick McHardy <kaber@trash.net> CC: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/isofs')
0 files changed, 0 insertions, 0 deletions