]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Add FIB nexthop exceptions.
authorDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 11:19:00 +0000 (04:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 15:48:50 +0000 (08:48 -0700)
commit529f0ee8559d44e09b96b7f447a0e715fd3b3c6e
tree66b132799e33a215b88bf3945965fefa7a0cde24
parent9fe0e805f4f91cb965ea7d81e42e1081084fbca2
ipv4: Add FIB nexthop exceptions.

In a regime where we have subnetted route entries, we need a way to
store persistent storage about destination specific learned values
such as redirects and PMTU values.

This is implemented here via nexthop exceptions.

The initial implementation is a 2048 entry hash table with relaiming
starting at chain length 5.  A more sophisticated scheme can be
devised if that proves necessary.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_semantics.c
net/ipv4/route.c