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

Commit 101154d9fab9f 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