net: ipv6: Address selection needs to consider L3 domains
commitafbac6010aec514998214fb19a1f37732b7a1d77
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 16 Jun 2016 23:24:26 +0000 (16 16:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 04:25:29 +0000 (17 21:25 -0700)
tree70ba765b4370e8f37a8b7859f054ec4e18727074
parent0d240e7811c4ec1965760ee4643b5bbc9cfacbb3
net: ipv6: Address selection needs to consider L3 domains

IPv6 version of 3f2fb9a834cb ("net: l3mdev: address selection should only
consider devices in L3 domain") and the follow up commit, a17b693cdd876
("net: l3mdev: prefer VRF master for source address selection").

That is, if outbound device is given then the address preference order
is an address from that device, an address from the master device if it
is enslaved, and then an address from a device in the same L3 domain.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/l3mdev.h
net/ipv6/addrconf.c