tcp: fix bt acked_sacked on recovery
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I2e2d76661fbb07dd8c6afa3583bb18e01b7a7fb6
This commit is contained in:

committed by
Dave Barach

parent
91413ace3e
commit
3e2ec42a07
@ -599,11 +599,12 @@ tcp_bt_sample_delivery_rate (tcp_connection_t * tc, tcp_rate_sample_t * rs)
|
||||
tc->lost += tc->sack_sb.last_lost_bytes;
|
||||
|
||||
delivered = tc->bytes_acked + tc->sack_sb.last_sacked_bytes;
|
||||
/* Do not count bytes that were previously sacked again */
|
||||
delivered -= tc->sack_sb.last_bytes_delivered;
|
||||
if (!delivered || tc->bt->head == TCP_BTS_INVALID_INDEX)
|
||||
return;
|
||||
|
||||
/* Do not count bytes that were previously sacked again */
|
||||
tc->delivered += delivered - tc->sack_sb.last_bytes_delivered;
|
||||
tc->delivered += delivered;
|
||||
tc->delivered_time = tcp_time_now_us (tc->c_thread_index);
|
||||
|
||||
if (tc->app_limited && tc->delivered > tc->app_limited)
|
||||
|
Reference in New Issue
Block a user