]> 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)
commit45e2d0b5ffca7f381a8a68a9c075d21ec0ed16b5
tree8f08a86ecd8fc2b4fd35dc0ddc5bcec40194b61b
parent1849d2fca91439a7defe0141b34075d7b5384937
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