Change RACK dependency on TCPHPTS from a build-time dependency to a load-

time dependency.

At present, RACK requires the TCPHPTS option to run. However, because
modules can be moved from machine to machine, this dependency is really
best assessed at load time rather than at build time.

Reviewed by:	rrs
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D15756
This commit is contained in:
Jonathan T. Looney 2018-06-11 14:27:19 +00:00
parent 48f00bafa1
commit cff21e484b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334949
2 changed files with 2 additions and 4 deletions

View File

@ -1960,3 +1960,4 @@ tcp_init_hptsi(void *st)
}
SYSINIT(tcphptsi, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, tcp_init_hptsi, NULL);
MODULE_VERSION(tcphpts, 1);

View File

@ -127,10 +127,6 @@ uma_zone_t rack_pcb_zone;
struct sysctl_ctx_list rack_sysctl_ctx;
struct sysctl_oid *rack_sysctl_root;
#ifndef TCPHPTS
fatal error missing option TCPHSTS in the build;
#endif
#define CUM_ACKED 1
#define SACKED 2
@ -9162,3 +9158,4 @@ static moduledata_t tcp_rack = {
MODULE_VERSION(MODNAME, 1);
DECLARE_MODULE(MODNAME, tcp_rack, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY);
MODULE_DEPEND(MODNAME, tcphpts, 1, 1, 1);