Re: [PATCH net-next] fib_trie: only calc for the un-first node

2013-10-09 Thread David Miller
From: baker.ker...@gmail.com Date: Tue, 8 Oct 2013 11:36:51 +0800 > From: "baker.zhang" > > 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: baker.zhang The compiler is probably

[PATCH net-next] fib_trie: only calc for the un-first node

2013-10-07 Thread baker . kernel
From: "baker.zhang" 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: baker.zhang --- net/ipv4/fib_trie.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/net/ipv4