diff options
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 4fd6e2887818..1e13ea98b96c 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -784,6 +784,7 @@ static void __tipc_node_link_down(struct tipc_node *n, int *bearer_id, | |||
784 | if (tipc_link_peer_is_down(l)) | 784 | if (tipc_link_peer_is_down(l)) |
785 | tipc_node_fsm_evt(n, PEER_LOST_CONTACT_EVT); | 785 | tipc_node_fsm_evt(n, PEER_LOST_CONTACT_EVT); |
786 | tipc_node_fsm_evt(n, SELF_LOST_CONTACT_EVT); | 786 | tipc_node_fsm_evt(n, SELF_LOST_CONTACT_EVT); |
787 | trace_tipc_link_reset(l, TIPC_DUMP_ALL, "link down!"); | ||
787 | tipc_link_fsm_evt(l, LINK_RESET_EVT); | 788 | tipc_link_fsm_evt(l, LINK_RESET_EVT); |
788 | tipc_link_reset(l); | 789 | tipc_link_reset(l); |
789 | tipc_link_build_reset_msg(l, xmitq); | 790 | tipc_link_build_reset_msg(l, xmitq); |
@@ -801,6 +802,7 @@ static void __tipc_node_link_down(struct tipc_node *n, int *bearer_id, | |||
801 | tipc_node_fsm_evt(n, NODE_SYNCH_END_EVT); | 802 | tipc_node_fsm_evt(n, NODE_SYNCH_END_EVT); |
802 | n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); | 803 | n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); |
803 | tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); | 804 | tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); |
805 | trace_tipc_link_reset(l, TIPC_DUMP_ALL, "link down -> failover!"); | ||
804 | tipc_link_reset(l); | 806 | tipc_link_reset(l); |
805 | tipc_link_fsm_evt(l, LINK_RESET_EVT); | 807 | tipc_link_fsm_evt(l, LINK_RESET_EVT); |
806 | tipc_link_fsm_evt(l, LINK_FAILOVER_BEGIN_EVT); | 808 | tipc_link_fsm_evt(l, LINK_FAILOVER_BEGIN_EVT); |
@@ -1022,6 +1024,7 @@ void tipc_node_check_dest(struct net *net, u32 addr, | |||
1022 | *respond = false; | 1024 | *respond = false; |
1023 | goto exit; | 1025 | goto exit; |
1024 | } | 1026 | } |
1027 | trace_tipc_link_reset(l, TIPC_DUMP_ALL, "link created!"); | ||
1025 | tipc_link_reset(l); | 1028 | tipc_link_reset(l); |
1026 | tipc_link_fsm_evt(l, LINK_RESET_EVT); | 1029 | tipc_link_fsm_evt(l, LINK_RESET_EVT); |
1027 | if (n->state == NODE_FAILINGOVER) | 1030 | if (n->state == NODE_FAILINGOVER) |
@@ -1599,8 +1602,11 @@ static bool tipc_node_check_state(struct tipc_node *n, struct sk_buff *skb, | |||
1599 | } | 1602 | } |
1600 | } | 1603 | } |
1601 | 1604 | ||
1602 | if (!tipc_link_validate_msg(l, hdr)) | 1605 | if (!tipc_link_validate_msg(l, hdr)) { |
1606 | trace_tipc_skb_dump(skb, false, "PROTO invalid (2)!"); | ||
1607 | trace_tipc_link_dump(l, TIPC_DUMP_NONE, "PROTO invalid (2)!"); | ||
1603 | return false; | 1608 | return false; |
1609 | } | ||
1604 | 1610 | ||
1605 | /* Check and update node accesibility if applicable */ | 1611 | /* Check and update node accesibility if applicable */ |
1606 | if (state == SELF_UP_PEER_COMING) { | 1612 | if (state == SELF_UP_PEER_COMING) { |