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)
commit4f25a1110cd4f5746b750a9567303c7ef6826b7c
treeecaed33716970007215a436184b59908f3ba0d0c
parent292264de63b7303bd29d7c6ecd0c3f0a8d805af7
net: ipv6/l3mdev: Move host route on saved address if necessary

Commit f1705ec197e70 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