git: 5ec914e06c96 - main - TCP BBR: fix condition when sending a tail loss probe

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Tue, 31 Dec 2024 21:06:28 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=5ec914e06c96ff40bf0e6567359c0de039b59ed2

commit 5ec914e06c96ff40bf0e6567359c0de039b59ed2
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2024-12-31 21:03:13 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2024-12-31 21:03:13 +0000

    TCP BBR: fix condition when sending a tail loss probe
    
    Reviewed by:            rrs
    CID:                    1523793
    MFC after:              1 week
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D48274
---
 sys/netinet/tcp_stacks/bbr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index f440573ace30..3c5864007986 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -4614,7 +4614,7 @@ need_retran:
 	 */
 	if (collapsed_win == 0) {
 		rsm = TAILQ_LAST_FAST(&bbr->r_ctl.rc_map, bbr_sendmap, r_next);
-		if (rsm && (BBR_ACKED | BBR_HAS_FIN)) {
+		if (rsm && (rsm->r_flags & (BBR_ACKED | BBR_HAS_FIN))) {
 			rsm = bbr_find_high_nonack(bbr, rsm);
 		}
 		if (rsm == NULL) {