git: 795416bc233d - stable/15 - tcp: Remove a no-op eventhandler
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 May 2026 22:08:25 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=795416bc233d5e0f1259fa3d61a85cbc7ce4d8f4
commit 795416bc233d5e0f1259fa3d61a85cbc7ce4d8f4
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-05-22 14:51:15 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-05-29 19:46:48 +0000
tcp: Remove a no-op eventhandler
It has done nothing since commit bc7d18ae7224. No functional change
intended.
Reviewed by: tuexen
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D57101
(cherry picked from commit bc041630fae2ea89bf041bf5d13df220aae4b2bf)
---
sys/netinet/tcp_subr.c | 8 --------
sys/netinet/tcp_var.h | 1 -
2 files changed, 9 deletions(-)
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 371158ea4190..d8e58fe3eff1 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1520,8 +1520,6 @@ tcp_init(void *arg __unused)
#endif /* INET6 */
ISN_LOCK_INIT();
- EVENTHANDLER_REGISTER(shutdown_pre_sync, tcp_fini, NULL,
- SHUTDOWN_PRI_DEFAULT);
EVENTHANDLER_REGISTER(vm_lowmem, tcp_drain, NULL, LOWMEM_PRI_DEFAULT);
EVENTHANDLER_REGISTER(mbuf_lowmem, tcp_drain, NULL, LOWMEM_PRI_DEFAULT);
@@ -1627,12 +1625,6 @@ tcp_destroy(void *unused __unused)
VNET_SYSUNINIT(tcp, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH, tcp_destroy, NULL);
#endif
-void
-tcp_fini(void *xtp)
-{
-
-}
-
/*
* Fill in the IP and TCP headers for an outgoing packet, given the tcpcb.
* tcp_template used to store this data in mbufs, but we now recopy it out
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index cdc1a3deb86a..dd431f2cc99a 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1400,7 +1400,6 @@ struct tcpcb *
void tcp_discardcb(struct tcpcb *);
void tcp_twstart(struct tcpcb *);
int tcp_ctloutput(struct socket *, struct sockopt *);
-void tcp_fini(void *);
char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, const void *,
const void *);
char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, const void *,