aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2014-05-05 08:56:14 +0800
committerDavid S. Miller <davem@davemloft.net>2014-05-05 17:26:44 -0400
commitca0c42732c512a12fabe677594840f31861dd31a (patch)
tree80f703e28c77128d77006e47b9e6a9c8735fb5df /net/tipc/node.h
parenttipc: remove TIPC_NAMES_GONE node flag (diff)
downloadlinux-dev-ca0c42732c512a12fabe677594840f31861dd31a.tar.xz
linux-dev-ca0c42732c512a12fabe677594840f31861dd31a.zip
tipc: avoid to asynchronously deliver name tables to peer node
Postpone the actions of delivering name tables until after node lock is released, avoiding to do it under asynchronous context. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/tipc/node.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h
index 4bd5eff82ce0..38f710fb75dc 100644
--- a/net/tipc/node.h
+++ b/net/tipc/node.h
@@ -48,15 +48,19 @@
#define INVALID_NODE_SIG 0x10000
/* Flags used to block (re)establishment of contact with a neighboring node
- * TIPC_NODE_DOWN: indicate node is down
+ * TIPC_NODE_DOWN: indicate node is down and it's used to block the node's
+ * links until RESET or ACTIVE message arrives
* TIPC_NODE_RESET: indicate node is reset
* TIPC_NODE_LOST: indicate node is lost and it's used to notify subscriptions
* when node lock is released
+ * TIPC_NODE_UP: indicate node is up and it's used to deliver local name table
+ * when node lock is released
*/
enum {
TIPC_NODE_DOWN = (1 << 1),
TIPC_NODE_RESET = (1 << 2),
- TIPC_NODE_LOST = (1 << 3)
+ TIPC_NODE_LOST = (1 << 3),
+ TIPC_NODE_UP = (1 << 4)
};
/**