]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bce215068ad92746ede240bd5d2b6004277c083
tree1b00dc1984fa2984020c06fbc1e48b8c00366f02
parenta785ab33f036fb73aa8c54609ca081815c4d38c7
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