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)
Mon, Feb 17, 2:10 AM
Unknown Object (File)
Sun, Feb 2, 2:25 AM
Unknown Object (File)
Fri, Jan 24, 4:22 PM
Unknown Object (File)
Fri, Jan 24, 12:34 AM
Unknown Object (File)
Jan 12 2025, 6:41 AM
Unknown Object (File)
Jan 9 2025, 6:03 PM
Unknown Object (File)
Jan 9 2025, 6:28 AM
Unknown Object (File)
Jan 8 2025, 4:41 PM

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.