Lines Matching defs:rwnd
446 * Figure out the value of window scale opton. Note that the rwnd is
457 uint32_t rwnd = tcp->tcp_rwnd;
459 for (i = 0; rwnd > TCP_MAXWIN && i < TCP_MAX_WINSHIFT;
460 i++, rwnd >>= 1)
2918 * We do not allow the receive window to shrink. After setting rwnd,
2932 * XXX - Should allow a lower rwnd than tcp_recv_hiwat_minmss * mss if the
2936 tcp_rwnd_set(tcp_t *tcp, uint32_t rwnd)
2951 rwnd = MAX(rwnd, tcps->tcps_recv_hiwat_minmss * mss);
2958 sth_hiwat = tcp_fuse_set_rcv_hiwat(tcp, rwnd);
2970 if ((tcp->tcp_rcv_ws > 0) && rwnd > tcp->tcp_cwnd_max)
2971 tcp->tcp_cwnd_max = rwnd;
2995 if (rwnd < old_max_rwnd && tcp->tcp_state > TCPS_SYN_SENT) {
2997 rwnd = MSS_ROUNDUP(old_max_rwnd, mss);
3005 if (rwnd > max_transmittable_rwnd) {
3006 rwnd = max_transmittable_rwnd -
3008 if (rwnd < mss)
3009 rwnd = max_transmittable_rwnd;
3015 tcp->tcp_rwnd = old_max_rwnd = rwnd;
3019 MIN(tcps->tcps_local_dacks_max, rwnd / mss / 2);
3027 MIN(tcps->tcps_deferred_acks_max, rwnd / mss / 2);
3034 * Increment the current rwnd by the amount the maximum grew (we
3038 tcp->tcp_rwnd += rwnd - old_max_rwnd;
3039 connp->conn_rcvbuf = rwnd;
3047 if ((tcp->tcp_rcv_ws > 0) && rwnd > tcp->tcp_cwnd_max)
3048 tcp->tcp_cwnd_max = rwnd;
3051 return (rwnd);
3053 tcp_set_recv_threshold(tcp, rwnd >> 3);
3055 (void) proto_set_rx_hiwat(connp->conn_rq, connp, rwnd);
3056 return (rwnd);
4202 * Just make sure our rwnd is at least rcvbuf * MSS large, and round up