vrf: check the original netdevice for generating redirect
authorStephen Suryaputra <ssuryaextr@gmail.com>
Fri, 1 Jun 2018 04:05:21 +0000 (00:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2018 14:16:43 +0000 (16:16 +0200)
commit869584ef0984bd88c25a0acd4757b80df7050a47
tree1c771604f521f6361d12b0181397650462d5c866
parentf833209e15bd6cf066e731463308f0058736a74b
vrf: check the original netdevice for generating redirect

[ Upstream commit 2f17becfbea5e9a0529b51da7345783e96e69516 ]

Use the right device to determine if redirect should be sent especially
when using vrf. Same as well as when sending the redirect.

Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_output.c
net/ipv6/ndisc.c