diff options
| author | Ingo Molnar <mingo@kernel.org> | 2018-12-03 11:44:00 +0100 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2018-12-03 11:44:00 +0100 | 
| commit | 989a4222c13a3e148772730d362fceb0727852f5 (patch) | |
| tree | c66538440a53713e8d3fc52db62e174c6966f831 /net/tipc/link.c | |
| parent | e8da8794a7fd9eef1ec9a07f0d4897c68581c72b (diff) | |
| parent | 2595646791c319cadfdbf271563aac97d0843dc7 (diff) | |
Merge tag 'v4.20-rc5' into irq/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/tipc/link.c')
| -rw-r--r-- | net/tipc/link.c | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 201c3b5bc96b..836727e363c4 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c @@ -1594,14 +1594,17 @@ static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb,  		if (in_range(peers_prio, l->priority + 1, TIPC_MAX_LINK_PRI))  			l->priority = peers_prio; -		/* ACTIVATE_MSG serves as PEER_RESET if link is already down */ -		if (msg_peer_stopping(hdr)) +		/* If peer is going down we want full re-establish cycle */ +		if (msg_peer_stopping(hdr)) {  			rc = tipc_link_fsm_evt(l, LINK_FAILURE_EVT); -		else if ((mtyp == RESET_MSG) || !link_is_up(l)) +			break; +		} +		/* ACTIVATE_MSG serves as PEER_RESET if link is already down */ +		if (mtyp == RESET_MSG || !link_is_up(l))  			rc = tipc_link_fsm_evt(l, LINK_PEER_RESET_EVT);  		/* ACTIVATE_MSG takes up link if it was already locally reset */ -		if ((mtyp == ACTIVATE_MSG) && (l->state == LINK_ESTABLISHING)) +		if (mtyp == ACTIVATE_MSG && l->state == LINK_ESTABLISHING)  			rc = TIPC_LINK_UP_EVT;  		l->peer_session = msg_session(hdr);  | 
