summaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 3f9912f87d0d..8685daf060f9 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -1101,7 +1101,7 @@ restart:
1101 /* Consume received message (optional) */ 1101 /* Consume received message (optional) */
1102 if (likely(!(flags & MSG_PEEK))) { 1102 if (likely(!(flags & MSG_PEEK))) {
1103 if ((sock->state != SS_READY) && 1103 if ((sock->state != SS_READY) &&
1104 (++port->conn_unacked >= TIPC_FLOW_CONTROL_WIN)) 1104 (++port->conn_unacked >= TIPC_CONNACK_INTV))
1105 tipc_acknowledge(port->ref, port->conn_unacked); 1105 tipc_acknowledge(port->ref, port->conn_unacked);
1106 advance_rx_queue(sk); 1106 advance_rx_queue(sk);
1107 } 1107 }
@@ -1210,7 +1210,7 @@ restart:
1210 1210
1211 /* Consume received message (optional) */ 1211 /* Consume received message (optional) */
1212 if (likely(!(flags & MSG_PEEK))) { 1212 if (likely(!(flags & MSG_PEEK))) {
1213 if (unlikely(++port->conn_unacked >= TIPC_FLOW_CONTROL_WIN)) 1213 if (unlikely(++port->conn_unacked >= TIPC_CONNACK_INTV))
1214 tipc_acknowledge(port->ref, port->conn_unacked); 1214 tipc_acknowledge(port->ref, port->conn_unacked);
1215 advance_rx_queue(sk); 1215 advance_rx_queue(sk);
1216 } 1216 }