]> git.karo-electronics.de Git - linux-beck.git/commit
inetpeer: Invalidate the inetpeer tree along with the routing cache
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 6 Mar 2012 21:20:26 +0000 (21:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 08:30:24 +0000 (00:30 -0800)
commit5faa5df1fa2024bd750089ff21dcc4191798263d
treea47a76a4bd9a3b61dcc2d2a34149e6ffecdf8cd8
parentdcf353b17007841f91e1735e33790508c84c9ad0
inetpeer: Invalidate the inetpeer tree along with the routing cache

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>
include/net/inetpeer.h
net/ipv4/inetpeer.c
net/ipv4/route.c