tipc: update cluster capabilities if node deleted
authorHoang Le <hoang.h.le@dektech.com.au>
Wed, 6 Nov 2019 06:26:09 +0000 (13:26 +0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 01:37:43 +0000 (17:37 -0800)
commit6708ef779249b3d8a7a1b7a52ae0b5e7d5a0a9b2
tree38eeb1c5548e0acdf69a2a3b653a4fd37e0ff88b
parent3c28d99fc62d64a2a9a2d99971bbe9ba17d187cb
tipc: update cluster capabilities if node deleted

There are two improvements when re-calculate cluster capabilities:

- When deleting a specific down node, need to re-calculate.
- In tipc_node_cleanup(), do not need to re-calculate if node
is still existing in cluster.

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Acked-by: Jon
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c