View | Details | Raw Unified | Return to bug 193762
Collapse All | Expand All

(-)b/sys/netinet/cc/cc_cdg.c (-1 / +8 lines)
Lines 578-584 cdg_ack_received(struct cc_var *ccv, uint16_t ack_type) Link Here
578
			qdiff_min = ((long)(cdg_data->minrtt_in_rtt -
578
			qdiff_min = ((long)(cdg_data->minrtt_in_rtt -
579
			    cdg_data->minrtt_in_prevrtt) << D_P_E );
579
			    cdg_data->minrtt_in_prevrtt) << D_P_E );
580
580
581
			calc_moving_average(cdg_data, qdiff_max, qdiff_min);
581
			if (cdg_data->sample_q_size == 0) {
582
				cdg_data->min_qtrend = cdg_data->min_qtrend +
583
				    qdiff_min / cdg_data->sample_q_size;
584
				cdg_data->max_qtrend = cdg_data->max_qtrend +
585
				    qdiff_max / cdg_data->sample_q_size;
586
			} else
587
				calc_moving_average(cdg_data, qdiff_max,
588
				    qdiff_min);
582
589
583
			/* Probabilistic backoff with respect to gradient. */
590
			/* Probabilistic backoff with respect to gradient. */
584
			if (slowstart && qdiff_min > 0)
591
			if (slowstart && qdiff_min > 0)

Return to bug 193762