Lines Matching defs:cwnd
3301 int32_t cwnd;
3389 cur_val = net->cwnd >> 10;
3392 if (cur_val < sctp_cwnd_adjust[0].cwnd) {
3395 net->cwnd += net->mtu;
3400 net->cwnd += net->net_ack;
3407 if (cur_val < sctp_cwnd_adjust[i].cwnd) {
3414 net->cwnd += incr;
3426 int old_cwnd = net->cwnd;
3429 cur_val = net->cwnd >> 10;
3431 if (cur_val < sctp_cwnd_adjust[0].cwnd) {
3433 net->ssthresh = net->cwnd / 2;
3437 net->cwnd = net->ssthresh;
3439 sctp_log_cwnd(net, (net->cwnd-old_cwnd), SCTP_CWND_LOG_FROM_FR);
3443 net->ssthresh = net->cwnd - (int)((net->cwnd / 100) *
3445 net->cwnd = net->ssthresh;
3448 cur_val = net->cwnd >> 10;
3450 if (cur_val < sctp_cwnd_adjust[0].cwnd) {
3455 if (cur_val > sctp_cwnd_adjust[i - 1].cwnd) {
3518 * 7) Update the cwnd.
3648 net->prev_cwnd = net->cwnd;
3873 /* update cwnd */
3902 /* If we are in loss recovery we skip any cwnd update */
3908 if (net->cwnd <= net->ssthresh) {
3911 net->cwnd ) {
3916 net->cwnd += net->mtu;
3923 net->cwnd += net->net_ack;
3935 dif = net->cwnd - (net->flight_size +
3955 net->cwnd) {
3957 * add to pba only if we had a cwnd's
3966 * (if pba is > cwnd)?
3969 net->cwnd) {
3970 if (net->cwnd <
3973 net->cwnd;
3978 net->cwnd += net->mtu;
3993 dif = net->cwnd - (net->flight_size +
4030 if (net->cwnd > sctp_pegs[SCTP_MAX_CWND]) {
4031 sctp_pegs[SCTP_MAX_CWND] = net->cwnd;
4151 * cwnd.
4158 int old_cwnd = net->cwnd;
4160 net->ssthresh = net->cwnd / 2;
4164 net->cwnd = net->ssthresh;
4166 sctp_log_cwnd(net, (net->cwnd-old_cwnd),
4195 * Mark a peg that we WOULD have done a cwnd reduction