git: 798cea6ee446 - stable/14 - tcp bbr: cleanup

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Tue, 24 Nov 2026 20:01:25 UTC
The branch stable/14 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=798cea6ee4466fae3eae77a1495a22fa472461eb

commit 798cea6ee4466fae3eae77a1495a22fa472461eb
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2026-11-14 17:36:42 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-11-24 19:00:13 +0000

    tcp bbr: cleanup
    
    No functional change intended.
    
    Sponsored by:   Netflix, Inc.
    
    (cherry picked from commit 34436bb7cf971dba1c0dcdb1d45f22fff1a4b6c1)
---
 sys/netinet/tcp_stacks/bbr.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index 996a12229ac7..5cd1209f249f 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -4903,8 +4903,7 @@ bbr_remxt_tmr(struct tcpcb *tp)
 				 * With this option, we will rack out
 				 * in 1ms increments the rest of the packets.
 				 */
-				rsm->r_flags |= BBR_SACK_PASSED | BBR_MARKED_LOST;
-				rsm->r_flags &= ~BBR_WAS_SACKPASS;
+				rsm->r_flags |= BBR_SACK_PASSED;
 			} else {
 				/*
 				 * With this option we only mark them lost
@@ -4913,10 +4912,10 @@ bbr_remxt_tmr(struct tcpcb *tp)
 				 * us to eventually send more based on what
 				 * ack's come in.
 				 */
-				rsm->r_flags |= BBR_MARKED_LOST;
-				rsm->r_flags &= ~BBR_WAS_SACKPASS;
 				rsm->r_flags &= ~BBR_SACK_PASSED;
 			}
+			rsm->r_flags |= BBR_MARKED_LOST;
+			rsm->r_flags &= ~BBR_WAS_SACKPASS;
 		}
 		trsm = rsm;
 	}