summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-18 01:55:59 +0400
committerDavid S. Miller <davem@davemloft.net>2012-07-21 00:40:07 +0400
commit2860583fe840d972573363dfa190b2149a604534 (patch)
tree473a69bdcc3e45dd35bc0452a588cfbbac54c6e6 /include
parent9917e1e8762745191eba5a3bf2040278cbddbee1 (diff)
downloadlinux-2860583fe840d972573363dfa190b2149a604534.tar.xz
ipv4: Kill rt->fi
It's not really needed. We only grabbed a reference to the fib_info for the sake of fib_info local metrics. However, fib_info objects are freed using RCU, as are therefore their private metrics (if any). We would have triggered a route cache flush if we eliminated a reference to a fib_info object in the routing tables. Therefore, any existing cached routes will first check and see that they have been invalidated before an errant reference to these metric values would occur. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/route.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 4bafe0bfe829..60d611dc5cee 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -56,7 +56,6 @@ struct rtable {
/* Miscellaneous cached information */
u32 rt_pmtu;
- struct fib_info *fi; /* for client ref to shared metrics */
};
static inline bool rt_is_input_route(const struct rtable *rt)