fib_trie: use fls() instead of open coded loop
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 13 Oct 2010 06:56:11 +0000 (06:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Oct 2010 18:13:22 +0000 (11:13 -0700)
commit874ffa8f72444d6253d2669fed304875c128f86b
tree1b00dc1984fa2984020c06fbc1e48b8c00366f02
parenta0a4a85a15df6335e3d11f83b2ac06ebebea313f
fib_trie: use fls() instead of open coded loop

fib_table_lookup() might use fls() to speedup an open coded loop.

Noticed while doing a profile analysis.

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