UPSTREAM: ipv6: fib: Unlink replaced routes from their nodes
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:22 +0000 (13:28 +0200)
committerChenbo Feng <fengc@google.com>
Sat, 30 Sep 2017 00:30:40 +0000 (17:30 -0700)
commita886cc1d3a501af4c867c3728d4a5594fc80f4c7
tree0fdb34c58e2431bb60bd0f98320d75f9ffbec928
parentd68ba9f11615ba0151440e3986ef6fb1991e88d4
UPSTREAM: ipv6: fib: Unlink replaced routes from their nodes

When a route is deleted its node pointer is set to NULL to indicate it's
no longer linked to its node. Do the same for routes that are replaced.

This will later allow us to test if a route is still in the FIB by
checking its node pointer instead of its reference count.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cherry-pick from: 7483cea79957312e9f8e9cf760a1bc5d6c507113
Bug: 64978549

Change-Id: Ibfa54cf918084138b6b19437e9ef86bfaea5deae
net/ipv6/ip6_fib.c