]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix PMTU updates for UDP/raw sockets in presence of VRF
authorDavid Ahern <dsahern@gmail.com>
Sun, 18 Nov 2018 18:45:30 +0000 (10:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Nov 2018 03:02:56 +0000 (19:02 -0800)
commitf1f2c5160a5df16ef259035eba491d52bb91678f
tree1c6d356d9751621bdaceb48ffc41757e56687be1
parent2adf912f95124c1194f5bd3d67962a40f4a3acff
ipv6: Fix PMTU updates for UDP/raw sockets in presence of VRF

Preethi reported that PMTU discovery for UDP/raw applications is not
working in the presence of VRF when the socket is not bound to a device.
The problem is that ip6_sk_update_pmtu does not consider the L3 domain
of the skb device if the socket is not bound. Update the function to
set oif to the L3 master device if relevant.

Fixes: b206d57efad8 ("net: Add VRF support to IPv6 stack")
Reported-by: Preethi Ramachandra <preethir@juniper.net>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c