]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Cache input routes in fib_info nexthops.
authorDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 19:58:50 +0000 (12:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 20:36:40 +0000 (13:36 -0700)
commit9defcaa2a5cbdbd833383ee167775a61883d34fa
treec523a0448a1feca0ebfa57983ff9ff58a898b768
parent5c23bd9fd8defc8e370e030f9044fad6882626d2
ipv4: Cache input routes in fib_info nexthops.

Caching input routes is slightly simpler than output routes, since we
don't need to be concerned with nexthop exceptions.  (locally
destined, and routed packets, never trigger PMTU events or redirects
that will be processed by us).

However, we have to elide caching for the DIRECTSRC and non-zero itag
cases.

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