summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-28 11:12:46 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-28 11:12:46 +0000
commitae245da0445107d49b44888c87cc148a3f0dd5c8 (patch)
tree7aceee5da24cc15500f1478c3691519316cfd199 /sys/netinet/tcp_timer.c
parentbee61d12ee3ec8711d987caada93af70892957f9 (diff)
Assert that every slow/fast timeout routine is called at IPL_SOFTNET.
This removes multipe recursive splsoftnet()/splx() dances.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 698cb0bb0c9..661fe0c8b6d 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_timer.c,v 1.51 2016/11/07 09:08:06 mpi Exp $ */
+/* $OpenBSD: tcp_timer.c,v 1.52 2016/11/28 11:12:45 mpi Exp $ */
/* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */
/*
@@ -129,13 +129,11 @@ tcp_delack(void *arg)
void
tcp_slowtimo(void)
{
- int s;
+ splsoftassert(IPL_SOFTNET);
- s = splsoftnet();
tcp_maxidle = TCPTV_KEEPCNT * tcp_keepintvl;
tcp_iss += TCP_ISSINCR2/PR_SLOWHZ; /* increment iss */
tcp_now++; /* for timestamps */
- splx(s);
}
/*