git: b5d0e1915a61 - stable/14 - tcp hpts: remove unused line argument from tcp_set_hpts
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 07:08:27 UTC
The branch stable/14 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=b5d0e1915a61076a921a4381dab96855ce5da098
commit b5d0e1915a61076a921a4381dab96855ce5da098
Author: Nick Banks <nickbanks@netflix.com>
AuthorDate: 2025-07-20 12:37:42 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-05 07:07:47 +0000
tcp hpts: remove unused line argument from tcp_set_hpts
Reviewed by: tuexen
Sponsored by: Netflix, Inc.
(cherry picked from commit 3ad8fd6f30466789111e088c16fcab4d94f63232)
---
sys/netinet/tcp_hpts.c | 2 +-
sys/netinet/tcp_hpts.h | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c
index da5fde91a132..55bfea54c63a 100644
--- a/sys/netinet/tcp_hpts.c
+++ b/sys/netinet/tcp_hpts.c
@@ -1486,7 +1486,7 @@ no_run:
}
void
-__tcp_set_hpts(struct tcpcb *tp, int32_t line)
+tcp_set_hpts(struct tcpcb *tp)
{
struct tcp_hpts_entry *hpts;
int failed;
diff --git a/sys/netinet/tcp_hpts.h b/sys/netinet/tcp_hpts.h
index a623d959db9a..f5856ed8e688 100644
--- a/sys/netinet/tcp_hpts.h
+++ b/sys/netinet/tcp_hpts.h
@@ -149,8 +149,7 @@ uint32_t tcp_hpts_insert_diag(struct tcpcb *tp, uint32_t slot, int32_t line,
#define tcp_hpts_insert(inp, slot) \
tcp_hpts_insert_diag((inp), (slot), __LINE__, NULL)
-void __tcp_set_hpts(struct tcpcb *tp, int32_t line);
-#define tcp_set_hpts(a) __tcp_set_hpts(a, __LINE__)
+void tcp_set_hpts(struct tcpcb *tp);
void tcp_set_inp_to_drop(struct inpcb *inp, uint16_t reason);