git: 4a32d6020753 - stable/14 - hpts: install kernel module

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Tue, 16 Jan 2024 19:05:09 UTC
The branch stable/14 has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=4a32d60207537e27fdf76f133419fa5170343dde

commit 4a32d60207537e27fdf76f133419fa5170343dde
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-11-21 17:22:46 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-01-16 18:38:40 +0000

    hpts: install kernel module
    
    It is important to instantly load tcp_rack.ko and tcp_bbr.ko
    
    Reviewed by:            tuexen, imp
    Differential Revision:  https://reviews.freebsd.org/D42697
    
    (cherry picked from commit f9030650185622d7cf8a7c81c4b3a3763539de24)
---
 sys/modules/tcp/Makefile      | 6 ++----
 sys/modules/tcp/hpts/Makefile | 6 ++++++
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/sys/modules/tcp/Makefile b/sys/modules/tcp/Makefile
index 364c0326c40d..3b6df4bc18e9 100644
--- a/sys/modules/tcp/Makefile
+++ b/sys/modules/tcp/Makefile
@@ -1,15 +1,13 @@
-#
-#
-
 .include <kmod.opts.mk>
 
-SUBDIR=	\
+SUBDIR=	${_hpts} \
         ${_tcp_bbr} \
         ${_tcp_rack} \
 	${_tcpmd5} \
 
 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
 	defined(ALL_MODULES)
+_hpts=		hpts
 _tcp_bbr= 	bbr
 _tcp_rack= 	rack
 .if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MTCP_SIGNATURE}
diff --git a/sys/modules/tcp/hpts/Makefile b/sys/modules/tcp/hpts/Makefile
new file mode 100644
index 000000000000..4ca462d7f612
--- /dev/null
+++ b/sys/modules/tcp/hpts/Makefile
@@ -0,0 +1,6 @@
+.PATH: ${SRCTOP}/sys/netinet
+
+KMOD=   tcphpts
+SRCS=   tcp_hpts.c opt_inet.h opt_inet6.h opt_rss.h device_if.h bus_if.h
+
+.include <bsd.kmod.mk>