Lines Matching defs:cwnd
121 * - If cwnd < ssth, we're doing slow start, otherwise congestion avoidance
127 * Therefore, (i < cwnd && xwin[i] != NULL) implies (ns - rack) > i.
139 u_int16_t cwnd; /* current congestion window */
1059 if (i >= seq->cwnd) {
1199 seq->cwnd = 1;
1297 seq->cwnd = 1;
1351 if (seq->cwnd < seq->wmax) {
1354 if (seq->cwnd < seq->ssth) {
1355 seq->cwnd += nack;
1357 if (seq->cwnd > seq->ssth) { /* into cg.av. phase */
1358 nack = seq->cwnd - seq->ssth;
1359 seq->cwnd = seq->ssth;
1364 if (seq->cwnd >= seq->ssth) {
1366 while (seq->acks >= seq->cwnd) {
1367 seq->acks -= seq->cwnd;
1368 if (seq->cwnd < seq->wmax)
1369 seq->cwnd++;
1394 while ((i = L2TP_SEQ_DIFF(seq->ns, seq->rack)) < seq->cwnd
1480 seq->ssth = (seq->cwnd + 1) / 2;
1481 seq->cwnd = 1;
1590 CHECK(seq->cwnd >= 1);
1591 CHECK(seq->cwnd <= seq->wmax);
1594 if (seq->cwnd < seq->ssth)
1597 CHECK(seq->acks <= seq->cwnd);
1605 for ( ; i < seq->cwnd; i++) /* verify peer's recv window full */