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)
commitd2d68ba9fe8b38eb03124b3176a013bb8aa2b5e5
treec523a0448a1feca0ebfa57983ff9ff58a898b768
parentf2bb4bedf35d5167a073dcdddf16543f351ef3ae
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