netfilter: arp_tables: unfold two critical loops in arp_packet_match()
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 18 Feb 2009 16:47:50 +0000 (17:47 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Feb 2009 16:47:50 +0000 (17:47 +0100)
commitddc214c43a923e89741e04da2f10e3037a64e222
tree106bd4feb8edb426683c9c46c50095f71ef8da0d
parent55df4ac0c927c7f1f84e6d75532f0ca45d391e64
netfilter: arp_tables: unfold two critical loops in arp_packet_match()

x86 and powerpc can perform long word accesses in an efficient maner.
We can use this to unroll two loops in arp_packet_match(), to
perform arithmetic on long words instead of bytes. This is a win
on x86_64 for example.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/arp_tables.c