ipv4: properly refresh rtable entries on pmtu/redirect events
authorTimo Teräs <timo.teras@iki.fi>
Mon, 27 May 2013 20:46:31 +0000 (20:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2013 07:07:42 +0000 (00:07 -0700)
commit387aa65a89434abe3128d36d1a6fc3842c94905d
tree65ca8ab0c6224eb39941455b1eb0abd2fa410035
parent829a5071ccf040b78bd93286a218580c66833b00
ipv4: properly refresh rtable entries on pmtu/redirect events

This reverts commit 05ab86c5 (xfrm4: Invalidate all ipv4 routes on
IPsec pmtu events). Flushing all cached entries is not needed.

Instead, invalidate only the related next hop dsts to recheck for
the added next hop exception where needed. This also fixes a subtle
race due to bumping generation id's before updating the pmtu.

Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
net/ipv4/esp4.c
net/ipv4/ipcomp.c
net/ipv4/route.c