]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc200de371982a6c0e346dcc978c82fb119379b4
tree6b7c83c37314b54508f6a37613c33610e388d85b
parent4b816063eadcd9e92d5f21f1391cbd79847f061a
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