Lines Matching full:rate
72 * 1Mbps? Why do we have a rate at 1.44Mbps called common?
79 * supporters of rate limiting
85 * The c4 is why we have a common rate that is available
86 * in all rate tables. This is a selected rate from the
89 * rate it should always be able to get. This answers a
95 * a rate higher than the b/w that it is estimating
106 * excessively long (to reach our desired rate).
112 * rate 31Mbps. 31Mbps means that each send that is done
114 * the packets sent at that rate. For 29,110,000 bps we
126 * delta between the two rates (416 - 390) divided into the rate
151 122500, /* 1Mbps - rate 1 */
152 180500, /* 1.44Mpbs - rate 2 common rate */
153 375000, /* 3Mbps - rate 3 */
154 625000, /* 5Mbps - rate 4 */
155 1250000, /* 10Mbps - rate 5 */
156 1875000, /* 15Mbps - rate 6 */
157 2500000, /* 20Mbps - rate 7 */
158 3125000, /* 25Mbps - rate 8 */
159 3750000, /* 30Mbps - rate 9 */
160 4375000, /* 35Mbps - rate 10 */
161 5000000, /* 40Meg - rate 11 */
162 6250000, /* 50Mbps - rate 12 */
163 12500000, /* 100Mbps - rate 13 */
164 25000000, /* 200Mbps - rate 14 */
165 50000000, /* 400Mbps - rate 15 */
166 100000000, /* 800Mbps - rate 16 */
167 5625000, /* 45Mbps - rate 17 */
168 6875000, /* 55Mbps - rate 19 */
169 7500000, /* 60Mbps - rate 20 */
170 8125000, /* 65Mbps - rate 21 */
171 8750000, /* 70Mbps - rate 22 */
172 9375000, /* 75Mbps - rate 23 */
173 10000000, /* 80Mbps - rate 24 */
174 10625000, /* 85Mbps - rate 25 */
175 11250000, /* 90Mbps - rate 26 */
176 11875000, /* 95Mbps - rate 27 */
177 12500000, /* 100Mbps - rate 28 */
178 13750000, /* 110Mbps - rate 29 */
179 15000000, /* 120Mbps - rate 30 */
180 16250000, /* 130Mbps - rate 31 */
181 17500000, /* 140Mbps - rate 32 */
182 18750000, /* 150Mbps - rate 33 */
183 20000000, /* 160Mbps - rate 34 */
184 21250000, /* 170Mbps - rate 35 */
185 22500000, /* 180Mbps - rate 36 */
186 23750000, /* 190Mbps - rate 37 */
187 26250000, /* 210Mbps - rate 38 */
188 27500000, /* 220Mbps - rate 39 */
189 28750000, /* 230Mbps - rate 40 */
190 30000000, /* 240Mbps - rate 41 */
191 31250000, /* 250Mbps - rate 42 */
192 34375000, /* 275Mbps - rate 43 */
193 37500000, /* 300Mbps - rate 44 */
194 40625000, /* 325Mbps - rate 45 */
195 43750000, /* 350Mbps - rate 46 */
196 46875000, /* 375Mbps - rate 47 */
197 53125000, /* 425Mbps - rate 48 */
198 56250000, /* 450Mbps - rate 49 */
199 59375000, /* 475Mbps - rate 50 */
200 62500000, /* 500Mbps - rate 51 */
201 68750000, /* 550Mbps - rate 52 */
202 75000000, /* 600Mbps - rate 53 */
203 81250000, /* 650Mbps - rate 54 */
204 87500000, /* 700Mbps - rate 55 */
205 93750000, /* 750Mbps - rate 56 */
206 106250000, /* 850Mbps - rate 57 */
207 112500000, /* 900Mbps - rate 58 */
208 125000000, /* 1Gbps - rate 59 */
209 156250000, /* 1.25Gps - rate 60 */
210 187500000, /* 1.5Gps - rate 61 */
211 218750000, /* 1.75Gps - rate 62 */
212 250000000, /* 2Gbps - rate 63 */
213 281250000, /* 2.25Gps - rate 64 */
214 312500000, /* 2.5Gbps - rate 65 */
215 343750000, /* 2.75Gbps - rate 66 */
216 375000000, /* 3Gbps - rate 67 */
217 500000000, /* 4Gbps - rate 68 */
218 625000000, /* 5Gbps - rate 69 */
219 750000000, /* 6Gbps - rate 70 */
220 875000000, /* 7Gbps - rate 71 */
221 1000000000, /* 8Gbps - rate 72 */
222 1125000000, /* 9Gbps - rate 73 */
223 1250000000, /* 10Gbps - rate 74 */
224 1875000000, /* 15Gbps - rate 75 */
225 2500000000 /* 20Gbps - rate 76 */
327 "Highest valid rate"); in rl_add_syctl_entries()
332 "Lowest valid rate"); in rl_add_syctl_entries()
358 "rate", in rl_add_syctl_entries()
368 "Individual Rate"); in rl_add_syctl_entries()
373 "Flags on this rate"); in rl_add_syctl_entries()
381 OID_AUTO, "rate", CTLFLAG_RD, in rl_add_syctl_entries()
382 &rs->rs_rlt[i].rate, in rl_add_syctl_entries()
383 "Rate in bytes per second"); in rl_add_syctl_entries()
393 "Number of enobufs logged on this rate"); in rl_add_syctl_entries()
509 rs->rs_rlt[i].rate = rate_table_act[at_low]; in populate_canned_table()
514 rs->rs_rlt[i].rate = rate_table_act[at_high]; in populate_canned_table()
561 * the rate-limiting. in rt_setup_new_rs()
657 rs->rs_rlt[0].rate = 12500; /* 100k */ in rt_setup_new_rs()
658 rs->rs_rlt[1].rate = 25000; /* 200k */ in rt_setup_new_rs()
659 rs->rs_rlt[2].rate = 62500; /* 500k */ in rt_setup_new_rs()
664 rs->rs_rlt[i].rate = rat; in rt_setup_new_rs()
667 rs->rs_rlt[(ALL_HARDWARE_RATES-1)].rate = 1250000000; in rt_setup_new_rs()
677 rs->rs_rlt[i].rate = rate_table_act[i]; in rt_setup_new_rs()
685 * a rate and fail to init one, we have at least a chance of in rt_setup_new_rs()
696 res = lentim / rs->rs_rlt[i].rate; in rt_setup_new_rs()
710 rs->rs_rlt[i].rate, i); in rt_setup_new_rs()
722 rs->rs_rlt[i].rate, in rt_setup_new_rs()
728 * Huh - first rate and we can't get in rt_setup_new_rs()
746 /* Did we get at least 1 rate? */ in rt_setup_new_rs()
792 if (bytes_per_sec <= rs->rs_rlt[i].rate) { in tcp_int_find_suitable_rate()
798 previous_rate = rs->rs_rlt[i].rate; in tcp_int_find_suitable_rate()
811 previous_rate = rs->rs_rlt[(ALL_HARDWARE_RATES-2)].rate; in tcp_int_find_suitable_rate()
833 previous_rate = rs->rs_rlt[(ind_calc-1)].rate; in tcp_int_find_suitable_rate()
839 if (bytes_per_sec == rs->rs_rlt[i].rate) { in tcp_int_find_suitable_rate()
846 /* > 1Gbps only one rate */ in tcp_int_find_suitable_rate()
847 if (bytes_per_sec == rs->rs_rlt[(ALL_HARDWARE_RATES-1)].rate) { in tcp_int_find_suitable_rate()
866 /* we want greater than the requested rate */ in tcp_int_find_suitable_rate()
871 if (bytes_per_sec < rs->rs_rlt[i].rate) { in tcp_int_find_suitable_rate()
874 previous_rate = rs->rs_rlt[(i-1)].rate; in tcp_int_find_suitable_rate()
878 (bytes_per_sec == rs->rs_rlt[i].rate)) { in tcp_int_find_suitable_rate()
881 previous_rate = rs->rs_rlt[(i-1)].rate; in tcp_int_find_suitable_rate()
889 if ((bytes_per_sec < rs->rs_rlt[(ALL_HARDWARE_RATES-1)].rate) && in tcp_int_find_suitable_rate()
891 /* Our top rate is larger than the request */ in tcp_int_find_suitable_rate()
894 (bytes_per_sec == rs->rs_rlt[(ALL_HARDWARE_RATES-1)].rate) && in tcp_int_find_suitable_rate()
896 /* It matches our top rate */ in tcp_int_find_suitable_rate()
899 /* The top rate is an alternative */ in tcp_int_find_suitable_rate()
902 previous_rate = rs->rs_rlt[(ALL_HARDWARE_RATES-2)].rate; in tcp_int_find_suitable_rate()
914 previous_rate = rs->rs_rlt[(ind_calc-1)].rate; in tcp_int_find_suitable_rate()
927 previous_rate = rs->rs_rlt[(ind_calc-1)].rate; in tcp_int_find_suitable_rate()
951 * Hunt the rate table with the restrictions in flags and find a in tcp_find_suitable_rate()
952 * suitable rate if possible. in tcp_find_suitable_rate()
953 * RS_PACING_EXACT_MATCH - look for an exact match to rate. in tcp_find_suitable_rate()
983 (bytes_per_sec == rs->rs_rlt[i].rate)) { in tcp_find_suitable_rate()
990 (bytes_per_sec <= rs->rs_rlt[i].rate)) { in tcp_find_suitable_rate()
997 previous_rate = rs->rs_rlt[i].rate; in tcp_find_suitable_rate()
998 if (bytes_per_sec > rs->rs_rlt[i].rate) in tcp_find_suitable_rate()
1014 if (rs->rs_rlt[i].rate > bytes_per_sec) { in tcp_find_suitable_rate()
1019 (bytes_per_sec == rs->rs_rlt[i].rate)) { in tcp_find_suitable_rate()
1031 if (rs->rs_rlt[i].rate < bytes_per_sec) { in tcp_find_suitable_rate()
1037 *lower_rate = rs->rs_rlt[i].rate; in tcp_find_suitable_rate()
1119 * if an ifp is removed just has a hw rate limit
1217 rte->rate, in rt_setup_rate()
1226 ("Setup rate has no snd_tag inp:%p rte:%p rate:%llu rs:%p", in rt_setup_rate()
1227 inp, rte, (unsigned long long)rte->rate, rs)); in rt_setup_rate()
1254 * We only care on an interface going up that is rate-limit in tcp_rl_ifnet_link()
1348 * We are setting up a rate for the first time. in tcp_set_pacing_rate()
1385 * We are modifying a rate, wrong interface? in tcp_set_pacing_rate()
1392 tp->t_pacing_rate = rte->rate; in tcp_set_pacing_rate()
1431 * allocate one when an existing rate in tcp_chg_pacing_rate()
1442 * rate limit on the inpcb tag. There is a in tcp_chg_pacing_rate()
1444 * the current rate instead of this one. in tcp_chg_pacing_rate()
1460 /* Release the rate, and try anew */ in tcp_chg_pacing_rate()
1475 /* Release the old rate */ in tcp_chg_pacing_rate()
1486 err = ktls_modify_txrtlmt(tls, nrte->rate); in tcp_chg_pacing_rate()
1489 err = in_pcbmodify_txrtlmt(inp, nrte->rate); in tcp_chg_pacing_rate()
1524 tp->t_pacing_rate = nrte->rate; in tcp_chg_pacing_rate()
1563 * switch it to using an unlimited rate, or perhaps use in tcp_rel_pacing_rate()
1666 * rate you are sending at and compare in tcp_get_pacing_burst_size_w_divisor()
1667 * that to the rate you have in hardware. in tcp_get_pacing_burst_size_w_divisor()
1669 * If the hardware rate is slower than your in tcp_get_pacing_burst_size_w_divisor()
1670 * software rate then you are in error and in tcp_get_pacing_burst_size_w_divisor()
1675 * If the rate in hardware is faster (which in tcp_get_pacing_burst_size_w_divisor()
1679 * takes to send at the rate you had selected. in tcp_get_pacing_burst_size_w_divisor()
1690 if (te->rate > FIVE_HUNDRED_MBPS) in tcp_get_pacing_burst_size_w_divisor()
1692 if (te->rate == bw) { in tcp_get_pacing_burst_size_w_divisor()
1693 /* We are pacing at exactly the hdwr rate */ in tcp_get_pacing_burst_size_w_divisor()
1696 te->rate, te->time_between, (uint32_t)0, in tcp_get_pacing_burst_size_w_divisor()
1716 te->rate, te->time_between, (uint32_t)res, in tcp_get_pacing_burst_size_w_divisor()
1731 * rate. in tcp_get_pacing_burst_size_w_divisor()
1734 te->rate, te->time_between, (uint32_t)res, in tcp_get_pacing_burst_size_w_divisor()
1767 /* Lets return the highest rate this guy has */ in tcp_hw_highest_rate_ifp()
1768 rate_ret = rs->rs_rlt[rs->rs_highest_valid].rate; in tcp_hw_highest_rate_ifp()