Home | History | Annotate | Download | only in net
History log of /src/sys/net/rtbl.c
RevisionDateAuthorComments
 1.7  01-Jun-2017  chs remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
 1.6  11-Jan-2017  ozaki-r Get rid of unnecessary header inclusions
 1.5  12-Dec-2016  ozaki-r Make the routing table and rtcaches MP-safe

See the following descriptions for details.

Proposed on tech-kern and tech-net


Overview
 1.4  15-Nov-2016  ozaki-r Don't use rt_walktree to delete routes

Some functions use rt_walktree to scan the routing table and delete
matched routes. However, we shouldn't use rt_walktree to delete
routes because rt_walktree is recursive to the routing table (radix
tree) and isn't friendly to MP-ification. rt_walktree allows a caller
to pass a callback function to delete an matched entry. The callback
function is called from an API of the radix tree (rn_walktree) but
also calls an API of the radix tree to delete an entry.

This change adds a new API of the radix tree, rn_search_matched,
which returns a matched entry that is selected by a callback
function passed by a caller and the caller itself deletes the
entry. By using the API, we can avoid the recursive form.
 1.3  11-Apr-2016  ozaki-r branches: 1.3.2;
Don't use radix tree API directly
 1.2  24-Aug-2015  pooka sprinkle _KERNEL_OPT
 1.1  31-Mar-2011  dyoung branches: 1.1.2; 1.1.6; 1.1.18; 1.1.36;
Hide the radix-trie implementation of the forwarding table so that we
will have an easier time replacing it with something different, even if
it is a second radix-trie implementation.

sys/net/route.c and sys/net/rtsock.c no longer operate directly on
radix_nodes or radix_node_heads.

Hopefully this will reduce the temptation to implement multipath or
source-based routing using grotty hacks to the grotty old radix-trie
code, too. :-)
 1.1.36.5  28-Aug-2017  skrll Sync with HEAD
 1.1.36.4  05-Feb-2017  skrll Sync with HEAD
 1.1.36.3  05-Dec-2016  skrll Sync with HEAD
 1.1.36.2  22-Apr-2016  skrll Sync with HEAD
 1.1.36.1  22-Sep-2015  skrll Sync with HEAD
 1.1.18.1  03-Dec-2017  jdolecek update from HEAD
 1.1.6.2  06-Jun-2011  jruoho Sync with HEAD.
 1.1.6.1  31-Mar-2011  jruoho file rtbl.c was added on branch jruoho-x86intr on 2011-06-06 09:09:53 +0000
 1.1.2.2  21-Apr-2011  rmind sync with head
 1.1.2.1  31-Mar-2011  rmind file rtbl.c was added on branch rmind-uvmplock on 2011-04-21 01:42:13 +0000
 1.3.2.2  20-Mar-2017  pgoyette Sync with HEAD
 1.3.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)

RSS XML Feed