]> 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)
commit49de5505b39fe0b79719f321c1ab670e6c9e4905
treec523a0448a1feca0ebfa57983ff9ff58a898b768
parent50ab9bbc57a6ef80612afa8591ba7b04be651abd
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