| 4285 | } |
| 4286 | |
| 4287 | static int |
| 4288 | bbr_is_lost(struct tcp_bbr *bbr, struct bbr_sendmap *rsm, uint32_t cts) |
| 4289 | { |
| 4290 | uint32_t thresh; |
| 4291 | |
| 4292 | thresh = bbr_calc_thresh_rack(bbr, bbr_get_rtt(bbr, BBR_RTT_RACK), |
| 4293 | cts, rsm); |
| 4294 | if ((cts - rsm->r_tim_lastsent[(rsm->r_rtr_cnt - 1)]) >= thresh) { |
| 4295 | /* It is lost (past time) */ |
| 4296 | return (1); |
| 4297 | } |
| 4298 | return (0); |
| 4299 | } |
| 4300 | |
| 4301 | /* |
| 4302 | * Return a sendmap if we need to retransmit something. |
no test coverage detected