git: dc66be9b6258 - stable/13 - TCP BBR: remove dead code
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Feb 2025 21:04:14 UTC
The branch stable/13 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=dc66be9b625829dde2972a16e65af4424a1f629f
commit dc66be9b625829dde2972a16e65af4424a1f629f
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-01-09 05:27:05 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-02-05 20:49:29 +0000
TCP BBR: remove dead code
No functional change intended.
Reviewed by: Peter Lei, rrs (earlier version)
CID: 1523802
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D48341
(cherry picked from commit e7fbf52a3e38c4bc4249e6541fe7e42ecc119656)
---
sys/netinet/tcp_stacks/bbr.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index 7193978f4ff0..32ee306f633e 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -6814,8 +6814,6 @@ bbr_update_rtt(struct tcpcb *tp, struct tcp_bbr *bbr,
t = cts - rsm->r_tim_lastsent[0];
else
t = 1;
- if ((int)t <= 0)
- t = 1;
bbr->r_ctl.rc_last_rtt = t;
bbr_update_bbr_info(bbr, rsm, t, cts, to->to_tsecr, 0,
BBR_RTT_BY_EXACTMATCH, rsm->r_tim_lastsent[0], ack_type, to);
@@ -6856,8 +6854,6 @@ bbr_update_rtt(struct tcpcb *tp, struct tcp_bbr *bbr,
t = cts - rsm->r_tim_lastsent[i];
else
t = 1;
- if ((int)t <= 0)
- t = 1;
bbr->r_ctl.rc_last_rtt = t;
bbr_update_bbr_info(bbr, rsm, t, cts, to->to_tsecr, uts, BBR_RTT_BY_TSMATCHING,
rsm->r_tim_lastsent[i], ack_type, to);