Re: [PATCH V3 net-next] fib_trie: avoid a redundant bit judgement in inflate

From
David Miller <davem@davemloft.net>
Date
2013-10-02 20:37:54
Also in
lkml
Reply to
unknown sender, 2013-09-30
From: <redacted>
Date: Tue,  1 Oct 2013 07:45:09 +0800
From: "baker.zhang" <redacted>

Because 'node' is the i'st child of 'oldnode',
thus, here 'i' equals
tkey_extract_bits(node->key, oldtnode->pos, oldtnode->bits)

we just get 1 more bit,
and need not care the detail value of this bits.

I apologize for the mistake.

I generated the patch on a branch version,
and did not notice the put_child has been changed.

I have redone the test on HEAD version with my patch.
Applied, thanks for testing things so thoroughly.
Thread (2 messages) 2 messages, 2 authors, last reply 2013-10-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help