Page MenuHomeFreeBSD

TCP RACK: remove code that cannot be reached
ClosedPublic

Authored by tuexen on Jan 3 2025, 1:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 22, 5:04 AM
Unknown Object (File)
Thu, May 21, 8:46 AM
Unknown Object (File)
Thu, May 7, 3:05 PM
Unknown Object (File)
Wed, May 6, 7:10 PM
Unknown Object (File)
Sun, May 3, 6:24 PM
Unknown Object (File)
Sun, May 3, 6:46 AM
Unknown Object (File)
Mon, Apr 27, 10:25 PM
Unknown Object (File)
Apr 23 2026, 4:59 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tuexen requested review of this revision.Jan 3 2025, 1:53 PM

Are you sure this condition cannot be reached?

I would suspect you can have available data and the pace_tmr_rxt can be up ...

In D48301#1101717, @rrs wrote:

Are you sure this condition cannot be reached?

I would suspect you can have available data and the pace_tmr_rxt can be up ...

The code I am removing would only call return, if rsm == NULL and tmr_up == PACE_TMR_RXT. This condition can not be true, since the condition before if (rsm == NULL) reads:

	if (((rsm == NULL) || (tp->t_state < TCPS_ESTABLISHED)) &&
	    (tmr_up == PACE_TMR_RXT)) {
		/* Should be an RXT */
		return;
	}

which means we would return from that condition and never reach the code I am removing.

This revision is now accepted and ready to land.Jan 4 2025, 1:09 PM
This revision was automatically updated to reflect the committed changes.