]> git.baikalelectronics.ru Git - kernel.git/commit
vti6: fix PMTU caching and reporting on xmit
authorEyal Birger <eyal.birger@gmail.com>
Thu, 7 Jun 2018 07:11:02 +0000 (10:11 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 7 Jun 2018 07:31:42 +0000 (09:31 +0200)
commitca6c51dfc1363304c8ba873c495942a0bdf0bb20
tree9c599cbf08dc3749b172bcf4dd6911ad15f4a574
parent87849e55955d48a0eaf9af39af51a4c7b3cc844c
vti6: fix PMTU caching and reporting on xmit

When setting the skb->dst before doing the MTU check, the route PMTU
caching and reporting is done on the new dst which is about to be
released.

Instead, PMTU handling should be done using the original dst.

This is aligned with IPv4 VTI.

Fixes: 038d3963b9 ("vti6: Add pmtu handling to vti6_xmit.")
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/ip6_vti.c