Home
last modified time | relevance | path

Searched refs:ind_calc (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/netinet/
H A Dtcp_ratelimit.c779 uint64_t mbits_per_sec, ind_calc, previous_rate = 0; in tcp_int_find_suitable_rate() local
820 ind_calc = mbits_per_sec/RS_ONE_MEGABIT_PERSEC; in tcp_int_find_suitable_rate()
821 if ((ind_calc * RS_ONE_MEGABIT_PERSEC) != mbits_per_sec) in tcp_int_find_suitable_rate()
822 ind_calc++; in tcp_int_find_suitable_rate()
824 ind_calc += 2; in tcp_int_find_suitable_rate()
825 if (ind_calc > (ALL_HARDWARE_RATES-1)) { in tcp_int_find_suitable_rate()
827 ind_calc = ALL_HARDWARE_RATES-1; in tcp_int_find_suitable_rate()
829 if ((ind_calc >= rs->rs_lowest_valid) && in tcp_int_find_suitable_rate()
830 (ind_calc <= rs->rs_highest_valid)) { in tcp_int_find_suitable_rate()
831 rte = &rs->rs_rlt[ind_calc]; in tcp_int_find_suitable_rate()
[all …]