tipc: don't directly overwrite node action_flags
authorYing Xue <ying.xue@windriver.com>
Thu, 8 May 2014 00:54:40 +0000 (08:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2014 05:41:01 +0000 (01:41 -0400)
commitca9cf06a0654fcf4b114a5a2d08723fc45d00317
tree8f08a86ecd8fc2b4fd35dc0ddc5bcec40194b61b
parentaecb9bb89cbc08366c50a98d2d4751b381a6dc3b
tipc: don't directly overwrite node action_flags

Each node action flag should be set or cleared separately, instead
we now set the whole flags variable in one shot, and it's turned
out to be hard to see which other flags are affected. Therefore,
for instance, we explicitly clear TIPC_WAIT_OWN_LINKS_DOWN bit in
node_lost_contact().

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/node.c