Skip to content
Commit 4c60f1d6 authored by baker.zhang's avatar baker.zhang Committed by David S. Miller
Browse files

fib_trie: only calc for the un-first node



This is a enhancement.

for the first node in fib_trie, newpos is 0, bit is 1.
Only for the leaf or node with unmatched key need calc pos.

Signed-off-by: default avatarbaker.zhang <baker.kernel@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c70ef85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment