]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d7c927a59e0255de3023bc8bb19893d3c04f447
tree65ca8ab0c6224eb39941455b1eb0abd2fa410035
parent74bf1208955bafc7a75b5f09a97289a35c62ea59
ipv4: properly refresh rtable entries on pmtu/redirect events

This reverts commit d2a66fc2 (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