]> 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)
commit11658397231e348cc3b058cf1ead0f03605203db
tree9c599cbf08dc3749b172bcf4dd6911ad15f4a574
parent7325e47b67d981a9cde3c6140a4fcd07640e00f4
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: 8f979d52a2 ("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