summaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorYing Xue2014-05-08 02:54:39 +0200
committerDavid S. Miller2014-05-09 07:41:01 +0200
commitaecb9bb89cbc08366c50a98d2d4751b381a6dc3b (patch)
treed7290c509698b82d49ae68ccb292d32dd2ce5bbb /net/tipc/link.c
parentMerge branch 'inet_csums_part2' (diff)
downloadkernel-qcow2-linux-aecb9bb89cbc08366c50a98d2d4751b381a6dc3b.tar.gz
kernel-qcow2-linux-aecb9bb89cbc08366c50a98d2d4751b381a6dc3b.tar.xz
kernel-qcow2-linux-aecb9bb89cbc08366c50a98d2d4751b381a6dc3b.zip
tipc: rename enum names of node flags
Rename node flags to action_flags as well as its enum names so that they can reflect its real meanings. 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>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index dce2bef81720..26abb16e86ab 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1489,12 +1489,12 @@ void tipc_rcv(struct sk_buff *head, struct tipc_bearer *b_ptr)
goto unlock_discard;
/* Verify that communication with node is currently allowed */
- if ((n_ptr->flags & TIPC_NODE_DOWN) &&
+ if ((n_ptr->action_flags & TIPC_WAIT_PEER_LINKS_DOWN) &&
msg_user(msg) == LINK_PROTOCOL &&
(msg_type(msg) == RESET_MSG ||
msg_type(msg) == ACTIVATE_MSG) &&
!msg_redundant_link(msg))
- n_ptr->flags &= ~TIPC_NODE_DOWN;
+ n_ptr->action_flags &= ~TIPC_WAIT_PEER_LINKS_DOWN;
if (tipc_node_blocked(n_ptr))
goto unlock_discard;
@@ -1853,7 +1853,7 @@ static void tipc_link_proto_rcv(struct tipc_link *l_ptr, struct sk_buff *buf)
* peer has lost contact -- don't allow peer's links
* to reactivate before we recognize loss & clean up
*/
- l_ptr->owner->flags = TIPC_NODE_RESET;
+ l_ptr->owner->action_flags = TIPC_WAIT_OWN_LINKS_DOWN;
}
link_state_event(l_ptr, RESET_MSG);