aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 7058c86f5e48..75db07c78a69 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1330,6 +1330,7 @@ static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb,
1330 u16 peers_snd_nxt = msg_next_sent(hdr); 1330 u16 peers_snd_nxt = msg_next_sent(hdr);
1331 u16 peers_tol = msg_link_tolerance(hdr); 1331 u16 peers_tol = msg_link_tolerance(hdr);
1332 u16 peers_prio = msg_linkprio(hdr); 1332 u16 peers_prio = msg_linkprio(hdr);
1333 u16 rcv_nxt = l->rcv_nxt;
1333 char *if_name; 1334 char *if_name;
1334 int rc = 0; 1335 int rc = 0;
1335 1336
@@ -1393,7 +1394,7 @@ static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb,
1393 break; 1394 break;
1394 1395
1395 /* Send NACK if peer has sent pkts we haven't received yet */ 1396 /* Send NACK if peer has sent pkts we haven't received yet */
1396 if (more(peers_snd_nxt, l->rcv_nxt)) 1397 if (more(peers_snd_nxt, rcv_nxt) && !tipc_link_is_synching(l))
1397 rcvgap = peers_snd_nxt - l->rcv_nxt; 1398 rcvgap = peers_snd_nxt - l->rcv_nxt;
1398 if (rcvgap || (msg_probe(hdr))) 1399 if (rcvgap || (msg_probe(hdr)))
1399 tipc_link_build_proto_msg(l, STATE_MSG, 0, rcvgap, 1400 tipc_link_build_proto_msg(l, STATE_MSG, 0, rcvgap,