]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd18df173ec70d61e9cb89d561ba98dd8548776c7
tree473a69bdcc3e45dd35bc0452a588cfbbac54c6e6
parent4ae1e29658b962bcd4965d18a0582586b3be43f4
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