diff options
author | Eric Dumazet <edumazet@google.com> | 2012-08-07 12:45:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-08 01:24:55 +0200 |
commit | 79cda75a107da0d49732b5cb642b456264dd7e0e (patch) | |
tree | 7cffe187b2ff7732f6002d7fc373f87cb93837b9 /net/bridge | |
parent | net: output path optimizations (diff) | |
download | linux-79cda75a107da0d49732b5cb642b456264dd7e0e.tar.xz linux-79cda75a107da0d49732b5cb642b456264dd7e0e.zip |
fib: use __fls() on non null argument
__fls(x) is a bit faster than fls(x), granted we know x is non null.
As Ben Hutchings pointed out, fls(x) = __fls(x) + 1
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions