]> git.baikalelectronics.ru Git - kernel.git/commit
fib_trie: Move rcu from key_vector to tnode, add accessors.
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Fri, 6 Mar 2015 17:54:33 +0000 (09:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 20:49:28 +0000 (15:49 -0500)
commit29953bcf2b210ae6c97fedc1c583e25bbc44ca37
treedf9c55fc8ba9fd2bd111382eed0284395b9275f0
parent667ff4de6de1648f3ab323271366641cfe99d844
fib_trie: Move rcu from key_vector to tnode, add accessors.

RCU is only needed once for the entire node, not once per key_vector so we
can pull that out and move it to the tnode structure.

In addition add accessors to be used inside the RCU functions so that we
can more easily get from the key vector to either the tnode or the trie
pointers.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c