]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb892d14f899b8887c935e70f57352f73717cb0ad
tree8f08a86ecd8fc2b4fd35dc0ddc5bcec40194b61b
parent3df42315aa1cc1e4565641228b4c3bdb483897e7
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