ipv4: Kill rt->fi
authorDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 21:55:59 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 20:40:07 +0000 (13:40 -0700)
commit2860583fe840d972573363dfa190b2149a604534
tree473a69bdcc3e45dd35bc0452a588cfbbac54c6e6
parent9917e1e8762745191eba5a3bf2040278cbddbee1
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>
include/net/route.h
net/ipv4/route.c