diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2012-03-06 21:20:26 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-10-26 21:05:57 +0100 |
commit | c25e82c03fed5bf21418963cebc92de7797f9b3b (patch) | |
tree | 81d238b3c0d90344504ce8e1176f0efbe47efe58 /net/ipv4/route.c | |
parent | e7b1664d08249f111c1802050c1e49435dde8e1d (diff) |
inetpeer: Invalidate the inetpeer tree along with the routing cache
[ Upstream commit 5faa5df1fa2024bd750089ff21dcc4191798263d ]
We initialize the routing metrics with the values cached on the
inetpeer in rt_init_metrics(). So if we have the metrics cached on the
inetpeer, we ignore the user configured fib_metrics.
To fix this issue, we replace the old tree with a fresh initialized
inet_peer_base. The old tree is removed later with a delayed work queue.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 94cdbc55ca7..c45a155a329 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -939,6 +939,7 @@ static void rt_cache_invalidate(struct net *net) get_random_bytes(&shuffle, sizeof(shuffle)); atomic_add(shuffle + 1U, &net->ipv4.rt_genid); redirect_genid++; + inetpeer_invalidate_tree(AF_INET); } /* |