]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6/l3mdev: Move host route on saved address if necessary
authorDavid Ahern <dsa@cumulusnetworks.com>
Sat, 27 Feb 2016 17:59:17 +0000 (09:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 22:22:52 +0000 (17:22 -0500)
commit51074ae723637835814fda4a74525ea1c77cc68b
treeecaed33716970007215a436184b59908f3ba0d0c
parentc16e01bfc0e700ad0651aa060036cb35e0298672
net: ipv6/l3mdev: Move host route on saved address if necessary

Commit 7b33ab6753961 allows IPv6 addresses to be retained on a link down.
The address can have a cached host route which can point to the wrong
FIB table if the L3 enslavement is changed (e.g., route can point to local
table instead of VRF table if device is added to an L3 domain).

On link up check the table of the cached host route against the FIB
table associated with the device and correct if needed.

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