diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-17 15:58:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 16:36:40 -0400 |
commit | d2d68ba9fe8b38eb03124b3176a013bb8aa2b5e5 (patch) | |
tree | c523a0448a1feca0ebfa57983ff9ff58a898b768 /include/net | |
parent | f2bb4bedf35d5167a073dcdddf16543f351ef3ae (diff) |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_fib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index fb62c590360e..e69c3a47153d 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -82,6 +82,7 @@ struct fib_nh { | |||
82 | __be32 nh_saddr; | 82 | __be32 nh_saddr; |
83 | int nh_saddr_genid; | 83 | int nh_saddr_genid; |
84 | struct rtable *nh_rth_output; | 84 | struct rtable *nh_rth_output; |
85 | struct rtable *nh_rth_input; | ||
85 | struct fnhe_hash_bucket *nh_exceptions; | 86 | struct fnhe_hash_bucket *nh_exceptions; |
86 | }; | 87 | }; |
87 | 88 | ||