]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Delete routing cache.
authorDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 18:00:09 +0000 (11:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 20:30:27 +0000 (13:30 -0700)
commita21ff6e5fe6aed665e8e0501957cfa1d1aab4b1a
tree4ff3885262d0f05af367c119528780b5d8d172ff
parent605ea386d4dceaad264246397d9f8f493214d188
ipv4: Delete routing cache.

The ipv4 routing cache is non-deterministic, performance wise, and is
subject to reasonably easy to launch denial of service attacks.

The routing cache works great for well behaved traffic, and the world
was a much friendlier place when the tradeoffs that led to the routing
cache's design were considered.

What it boils down to is that the performance of the routing cache is
a product of the traffic patterns seen by a system rather than being a
product of the contents of the routing tables.  The former of which is
controllable by external entitites.

Even for "well behaved" legitimate traffic, high volume sites can see
hit rates in the routing cache of only ~%10.

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