ipv4: fib table algorithm performance improvement
authorStephen Hemminger <shemminger@vyatta.com>
Sun, 20 Sep 2009 10:35:36 +0000 (10:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2009 07:21:56 +0000 (00:21 -0700)
commit16c6cf8bb471392fd09b48b7c27e7d83a446b4bc
tree6b7c83c37314b54508f6a37613c33610e388d85b
parent977750076d98c7ff6cbda51858bb5a5894a9d9ab
ipv4: fib table algorithm performance improvement

The FIB algorithim for IPV4 is set at compile time, but kernel goes through
the overhead of function call indirection at runtime. Save some
cycles by turning the indirect calls to direct calls to either
hash or trie code.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_hash.c
net/ipv4/fib_rules.c
net/ipv4/fib_trie.c