git: 2871bc271ec1 - stable/14 - rack, bbr: minor cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 18:52:24 UTC
The branch stable/14 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=2871bc271ec17125dce0d35b8bf76f679d99d18d
commit 2871bc271ec17125dce0d35b8bf76f679d99d18d
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-06 10:24:54 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-05 18:52:00 +0000
rack, bbr: minor cleanup
No functional change intended.
Reviewed by: Nick Banks
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51734
(cherry picked from commit 717bbade24857fd52724e9bb5ffdcfa0310f0a48)
---
sys/netinet/tcp_stacks/rack_bbr_common.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/netinet/tcp_stacks/rack_bbr_common.c b/sys/netinet/tcp_stacks/rack_bbr_common.c
index e5ccc7ebb236..d39ededc99d1 100644
--- a/sys/netinet/tcp_stacks/rack_bbr_common.c
+++ b/sys/netinet/tcp_stacks/rack_bbr_common.c
@@ -509,11 +509,9 @@ void
ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
int32_t rstreason, int32_t tlen)
{
- if (tp != NULL) {
- tcp_dropwithreset(m, th, tp, tlen, rstreason);
+ tcp_dropwithreset(m, th, tp, tlen, rstreason);
+ if (tp != NULL)
INP_WUNLOCK(tptoinpcb(tp));
- } else
- tcp_dropwithreset(m, th, NULL, tlen, rstreason);
}
void