]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fib: Unlink replaced routes from their nodes
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:22 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:36:00 +0000 (15:36 -0700)
commit36dee24459ef6c7b4cbda4c748d974d45f8ba853
tree1c7053e01df1e38f332a0f75a592bcafa6ac45cb
parent2b70638d0dca475bbb05472fd482cdf55a92326e
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>
net/ipv6/ip6_fib.c