aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-01-30 23:30:28 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-01-30 23:30:28 +0000
commit54082796aa2d47ecb762bd77658f5705ad6681ee (patch)
treee81bf6042c74de4aa04a2728c9adaa5dbb87c714 /sys/netinet/tcp_timewait.c
parente6fff3fa5420f32d63c2e13d4ae6125ffa209955 (diff)
downloadsrc-54082796aa2d47ecb762bd77658f5705ad6681ee.tar.gz
src-54082796aa2d47ecb762bd77658f5705ad6681ee.zip
Have tcp_isn_tick() fire 100 times a second, rather than HZ times a
second; since the default hz has changed to 1000 times a second, this resulted in unecessary work being performed. MFC after: 2 weeks Discussed with: phk, cperciva General head nod: silby
Notes
Notes: svn path=/head/; revision=141072
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 9c4e8bf64d23..fe4343e507b7 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -1363,7 +1363,7 @@ tcp_isn_tick(xtp)
isn_offset = projected_offset;
isn_offset_old = isn_offset;
- callout_reset(&isn_callout, 1, tcp_isn_tick, NULL);
+ callout_reset(&isn_callout, hz/100, tcp_isn_tick, NULL);
INP_INFO_WUNLOCK(&tcbinfo);
}