Lines Matching refs:rwnd
160 asoc->rwnd = SCTP_DEFAULT_MINWINDOW;
162 asoc->rwnd = sk->sk_rcvbuf/2;
164 asoc->a_rwnd = asoc->rwnd;
167 asoc->peer.rwnd = SCTP_DEFAULT_MAXWINDOW;
1102 asoc->peer.rwnd = new->peer.rwnd;
1449 if ((asoc->rwnd > asoc->a_rwnd) &&
1450 ((asoc->rwnd - asoc->a_rwnd) >= max_t(__u32,
1461 /* Increase asoc's rwnd by len and send any window update SACK if needed. */
1471 asoc->rwnd += (len - asoc->rwnd_over);
1475 asoc->rwnd += len;
1479 * once our rwnd had reached the accumulated pressure
1485 asoc->rwnd += change;
1489 pr_debug("%s: asoc:%p rwnd increased by %d to (%u, %u) - %u\n",
1490 __func__, asoc, len, asoc->rwnd, asoc->rwnd_over,
1493 /* Send a window update SACK if the rwnd has increased by at least the
1499 asoc->a_rwnd = asoc->rwnd;
1501 pr_debug("%s: sending window update SACK- asoc:%p rwnd:%u "
1502 "a_rwnd:%u\n", __func__, asoc, asoc->rwnd,
1520 /* Decrease asoc's rwnd by len. */
1526 if (unlikely(!asoc->rwnd || asoc->rwnd_over))
1527 pr_debug("%s: association:%p has asoc->rwnd:%u, "
1529 asoc->rwnd, asoc->rwnd_over);
1537 * a 0 rwnd if rwnd would still be positive. Store the
1544 if (asoc->rwnd >= len) {
1545 asoc->rwnd -= len;
1547 asoc->rwnd_press += asoc->rwnd;
1548 asoc->rwnd = 0;
1551 asoc->rwnd_over += len - asoc->rwnd;
1552 asoc->rwnd = 0;
1555 pr_debug("%s: asoc:%p rwnd decreased by %d to (%u, %u, %u)\n",
1556 __func__, asoc, len, asoc->rwnd, asoc->rwnd_over,