diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2021-07-08 11:06:58 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2021-07-13 19:59:50 +0000 |
commit | 1bb521ab7de7923c001bdbab30269dd3f336b371 (patch) | |
tree | 627d1fecef45c7ab13274ffcaecb1ee9bd6ddb43 | |
parent | deb3c279d1560f71c1777f52bf3e73eebe3d986a (diff) | |
download | src-1bb521ab7de7923c001bdbab30269dd3f336b371.tar.gz src-1bb521ab7de7923c001bdbab30269dd3f336b371.zip |
tcp: Fix 32 bit platform breakage
This fixes the incorrect use of a sysctl add to u64. It
was for a useconds time, but on 32 bit platforms its
not a u64. Instead use the long directive.
Reviewed by: tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D31107
(cherry picked from commit 7312e4e5cfc8e48597acf17f4faa8159f0b5fa06)
-rw-r--r-- | sys/netinet/tcp_hpts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c index 9a390e3a85c8..9ec092f703ec 100644 --- a/sys/netinet/tcp_hpts.c +++ b/sys/netinet/tcp_hpts.c @@ -2208,10 +2208,10 @@ tcp_init_hptsi(void *st) OID_AUTO, "lastran", CTLFLAG_RD, &cts_last_ran[i], 0, "The last usec tick that this hpts ran"); - SYSCTL_ADD_U64(&hpts->hpts_ctx, + SYSCTL_ADD_LONG(&hpts->hpts_ctx, SYSCTL_CHILDREN(hpts->hpts_root), OID_AUTO, "cur_min_sleep", CTLFLAG_RD, - &hpts->p_mysleep.tv_usec, 0, + &hpts->p_mysleep.tv_usec, "What the running pacers is using for p_mysleep.tv_usec"); SYSCTL_ADD_U64(&hpts->hpts_ctx, SYSCTL_CHILDREN(hpts->hpts_root), |