public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH v2 00/10] The rest of the FIB patches (add key_vector to fib_table)
@ 2015-03-06 17:53 Alexander Duyck
  2015-03-06 17:53 ` [net-next PATCH v2 01/10] fib_trie: Minor cleanups to fib_table_flush_external Alexander Duyck
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Alexander Duyck @ 2015-03-06 17:53 UTC (permalink / raw)
  To: netdev; +Cc: davem

This patch series is the rest of what I had originally planned for this kernel
release.  It adds a structure called key_vector which is embedded within
every tnode, leaf, and the trie root itself.  By doing this we can navigate
from any point within the trie to any other point fairly quickly and
avoiding NULL pointer checks in the case of a backtrace.  As a result we
can pipeline things a bit further since we don't have to worry about
dereferencing NULL in a backtrace.  This can amount to significant savings
on a long backtrace.

I decided to drop the up-level code as that conflicts with combining the
main and local tries.  I have one patch as an RFC that currently combines
the tries however it still needs some work as we have to split the local
and main tries in the event of custom rules being defined.  As such we are
probably going to be doing some more hacking on fib_table_flush_external as
that will also need to flush the local entries from the main trie and place
them back in the local trie.

v2: Rebased on the switchdev FIB offload work

---

Alexander Duyck (10):
      fib_trie: Minor cleanups to fib_table_flush_external
      fib_trie: Return pointer to tnode pointer in resize/inflate/halve
      fib_trie: Rename tnode to key_vector
      fib_trie: replace tnode_get_child functions with get_child macros
      fib_trie: Rename tnode_child_length to child_length
      fib_trie: Add tnode struct as a container for fields not needed in key_vector
      fib_trie: Move rcu from key_vector to tnode, add accessors.
      fib_trie: Pull empty_children and full_children into tnode
      fib_trie: Move parent from key_vector to tnode
      fib_trie: Add key vector to root, return parent key_vector in resize


 net/ipv4/fib_trie.c |  807 +++++++++++++++++++++++++--------------------------
 1 file changed, 401 insertions(+), 406 deletions(-)

--

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-03-06 20:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 17:53 [net-next PATCH v2 00/10] The rest of the FIB patches (add key_vector to fib_table) Alexander Duyck
2015-03-06 17:53 ` [net-next PATCH v2 01/10] fib_trie: Minor cleanups to fib_table_flush_external Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 02/10] fib_trie: Return pointer to tnode pointer in resize/inflate/halve Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 03/10] fib_trie: Rename tnode to key_vector Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 04/10] fib_trie: replace tnode_get_child functions with get_child macros Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 05/10] fib_trie: Rename tnode_child_length to child_length Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 06/10] fib_trie: Add tnode struct as a container for fields not needed in key_vector Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 07/10] fib_trie: Move rcu from key_vector to tnode, add accessors Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 08/10] fib_trie: Pull empty_children and full_children into tnode Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 09/10] fib_trie: Move parent from key_vector to tnode Alexander Duyck
2015-03-06 17:54 ` [net-next PATCH v2 10/10] fib_trie: Add key vector to root, return parent key_vector in resize Alexander Duyck
2015-03-06 20:52 ` [net-next PATCH v2 00/10] The rest of the FIB patches (add key_vector to fib_table) David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox