diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-01-30 23:30:28 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-01-30 23:30:28 +0000 |
commit | de7952d4ea066a6dfa6a2ced64a5d21ff5039e85 (patch) | |
tree | e81bf6042c74de4aa04a2728c9adaa5dbb87c714 /sys/netinet | |
parent | 456a3116c9b3bbb023f006fb186df785e0e19f57 (diff) | |
download | FreeBSD-src-de7952d4ea066a6dfa6a2ced64a5d21ff5039e85.zip FreeBSD-src-de7952d4ea066a6dfa6a2ced64a5d21ff5039e85.tar.gz |
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
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_subr.c | 2 | ||||
-rw-r--r-- | sys/netinet/tcp_timewait.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 9c4e8bf..fe4343e 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.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); } diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 9c4e8bf..fe4343e 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); } |