]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitd6990976af7c5d8f55903bfb4289b6fb030bf754
tree9c599cbf08dc3749b172bcf4dd6911ad15f4a574
parent1c8c5a9d38f607c0b6fd12c91cbe1a4418762a21
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: ccd740cbc6 ("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