]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Address selection needs to consider L3 domains
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 16 Jun 2016 23:24:26 +0000 (16:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 04:25:29 +0000 (21:25 -0700)
commitf1c5b73c6e415b05450f67428d1659b8187a38b5
tree70ba765b4370e8f37a8b7859f054ec4e18727074
parent7dbe0243db50d47ca48ad3ce9a4cf670b9facc10
net: ipv6: Address selection needs to consider L3 domains

IPv6 version of e31cbc39baaf ("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