summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-11-21 07:08:57 -0800
committerDavid S. Miller <davem@davemloft.net>2017-11-24 01:34:52 +0900
commit98d11291d189cb5adf49694d0ad1b971c0212697 (patch)
treeffb4ddb83e8919f7ec2dfe4750d754dd09f4152d /drivers/regulator
parent9477fef4b653808d47243e06fa83b8b8aa36944f (diff)
downloadlinux-98d11291d189cb5adf49694d0ad1b971c0212697.tar.gz
linux-98d11291d189cb5adf49694d0ad1b971c0212697.tar.bz2
linux-98d11291d189cb5adf49694d0ad1b971c0212697.zip
net: ipv6: Fixup device for anycast routes during copy
Florian reported a breakage with anycast routes due to commit 4832c30d5458 ("net: ipv6: put host and anycast routes on device with address"). Prior to this commit anycast routes were added against the loopback device causing repetitive route entries with no insight into why they existed. e.g.: $ ip -6 ro ls table local type anycast anycast 2001:db8:1:: dev lo proto kernel metric 0 pref medium anycast 2001:db8:2:: dev lo proto kernel metric 0 pref medium anycast fe80:: dev lo proto kernel metric 0 pref medium anycast fe80:: dev lo proto kernel metric 0 pref medium The point of commit 4832c30d5458 is to add the routes using the device with the address which is causing the route to be added. e.g.,: $ ip -6 ro ls table local type anycast anycast 2001:db8:1:: dev eth1 proto kernel metric 0 pref medium anycast 2001:db8:2:: dev eth2 proto kernel metric 0 pref medium anycast fe80:: dev eth2 proto kernel metric 0 pref medium anycast fe80:: dev eth1 proto kernel metric 0 pref medium For traffic to work as it did before, the dst device needs to be switched to the loopback when the copy is created similar to local routes. Fixes: 4832c30d5458 ("net: ipv6: put host and anycast routes on device with address") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions