RACK: fix an issue triggered by using the CDG CC module

Obtained from:		rrs@
MFC after:		3 days
PR:			238741
Sponsored by:		Netlix, Inc.
This commit is contained in:
Michael Tuexen 2021-03-02 12:32:16 +01:00
parent a9f7eba959
commit 99adf23006

View File

@ -12305,7 +12305,7 @@ rack_output(struct tcpcb *tp)
sb_offset = tp->snd_nxt - tp->snd_una;
else
sb_offset = 0;
if ((IN_RECOVERY(tp->t_flags) == 0) || rack->rack_no_prr) {
if ((IN_FASTRECOVERY(tp->t_flags) == 0) || rack->rack_no_prr) {
if (rack->r_ctl.rc_tlp_new_data) {
/* TLP is forcing out new data */
if (rack->r_ctl.rc_tlp_new_data > (uint32_t) (avail - sb_offset)) {
@ -12319,7 +12319,7 @@ rack_output(struct tcpcb *tp)
new_data_tlp = doing_tlp = 1;
} else
len = rack_what_can_we_send(tp, rack, cwnd_to_use, avail, sb_offset);
if (IN_RECOVERY(tp->t_flags) && (len > segsiz)) {
if (IN_FASTRECOVERY(tp->t_flags) && (len > segsiz)) {
/*
* For prr=off, we need to send only 1 MSS
* at a time. We do this because another sack could