diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2025-01-09 05:27:05 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2025-01-09 05:27:05 +0000 |
commit | e7fbf52a3e38c4bc4249e6541fe7e42ecc119656 (patch) | |
tree | 67f6d783b12aa714e3a4c351a9169393d6987363 | |
parent | 8e8f8d86e305fe1e90fcfc64c1958e61b359f4f4 (diff) |
TCP BBR: remove dead code
No functional change intended.
Reviewed by: Peter Lei, rrs (earlier version)
CID: 1523802
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D48341
-rw-r--r-- | sys/netinet/tcp_stacks/bbr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c index 4600088bd1a1..17a0744961ce 100644 --- a/sys/netinet/tcp_stacks/bbr.c +++ b/sys/netinet/tcp_stacks/bbr.c @@ -6781,8 +6781,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); @@ -6823,8 +6821,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); |