diff options
author | Richard Scheffenegger <rscheff@FreeBSD.org> | 2023-12-07 14:13:05 +0000 |
---|---|---|
committer | Richard Scheffenegger <rscheff@FreeBSD.org> | 2023-12-07 14:37:45 +0000 |
commit | 9276ad23b872eddc42e05304acb10bf5421b043c (patch) | |
tree | 10265da2ee58c16b35215d274b9c281515ba3c01 | |
parent | 25f37779bdeba6856f92d0bc94f74582566fcb0f (diff) | |
download | src-9276ad23b872eddc42e05304acb10bf5421b043c.tar.gz src-9276ad23b872eddc42e05304acb10bf5421b043c.zip |
tcp: shift PRR sending cadence slightly left
Don't let PRR pass up on the opportunity of clocking
out packets on arrival of ACKs - by pulling sends
forward by about half a packet. Prevents unexpectedly
long runs of incoming ACKs without eliciting a
packet transmission.
MFC after: 1 week
Reviewed By: #transport, tuexen
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D42918
-rw-r--r-- | sys/netinet/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index b26ae92a767e..05f9a4a9726a 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -3970,7 +3970,7 @@ tcp_do_prr_ack(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to, sackstatu imax(1, tp->snd_nxt - tp->snd_una); snd_cnt = howmany((long)tp->sackhint.prr_delivered * tp->snd_ssthresh, tp->sackhint.recover_fs) - - tp->sackhint.prr_out; + tp->sackhint.prr_out + maxseg - 1; } else { /* * PRR 6937bis heuristic: |