Lines Matching refs:rwnd
163 asoc->rwnd = SCTP_DEFAULT_MINWINDOW;
165 asoc->rwnd = sk->sk_rcvbuf/2;
167 asoc->a_rwnd = asoc->rwnd;
170 asoc->peer.rwnd = SCTP_DEFAULT_MAXWINDOW;
1110 asoc->peer.rwnd = new->peer.rwnd;
1457 if ((asoc->rwnd > asoc->a_rwnd) &&
1458 ((asoc->rwnd - asoc->a_rwnd) >= max_t(__u32,
1469 /* Increase asoc's rwnd by len and send any window update SACK if needed. */
1479 asoc->rwnd += (len - asoc->rwnd_over);
1483 asoc->rwnd += len;
1487 * once our rwnd had reached the accumulated pressure
1493 asoc->rwnd += change;
1497 pr_debug("%s: asoc:%p rwnd increased by %d to (%u, %u) - %u\n",
1498 __func__, asoc, len, asoc->rwnd, asoc->rwnd_over,
1501 /* Send a window update SACK if the rwnd has increased by at least the
1507 asoc->a_rwnd = asoc->rwnd;
1509 pr_debug("%s: sending window update SACK- asoc:%p rwnd:%u "
1510 "a_rwnd:%u\n", __func__, asoc, asoc->rwnd,
1528 /* Decrease asoc's rwnd by len. */
1534 if (unlikely(!asoc->rwnd || asoc->rwnd_over))
1535 pr_debug("%s: association:%p has asoc->rwnd:%u, "
1537 asoc->rwnd, asoc->rwnd_over);
1545 * a 0 rwnd if rwnd would still be positive. Store the
1552 if (asoc->rwnd >= len) {
1553 asoc->rwnd -= len;
1555 asoc->rwnd_press += asoc->rwnd;
1556 asoc->rwnd = 0;
1559 asoc->rwnd_over += len - asoc->rwnd;
1560 asoc->rwnd = 0;
1563 pr_debug("%s: asoc:%p rwnd decreased by %d to (%u, %u, %u)\n",
1564 __func__, asoc, len, asoc->rwnd, asoc->rwnd_over,