summaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-11-09 21:45:19 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-11-09 21:45:19 +0000
commit661ea672c3f560327234dcb32df1d71954cc8977 (patch)
tree0960054a658c26f3c8169c926407acf29c577fb4 /sys/netinet/if_ether.c
parent488bd9ace42e84635f50e459fef5e8a136bc440f (diff)
Run arp timeout without kernel lock.
Since cheloha@ has implemented timeout processes that do not grab the kernel lock, start using TIMEOUT_MPSAFE for arptimer(). OK kn@ mvs@
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 2854dd0c2dd..5ba3bcecef7 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.265 2023/05/12 12:40:49 bluhm Exp $ */
+/* $OpenBSD: if_ether.c,v 1.266 2023/11/09 21:45:18 bluhm Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -149,7 +149,8 @@ arpinit(void)
pool_init(&arp_pool, sizeof(struct llinfo_arp), 0,
IPL_SOFTNET, 0, "arp", NULL);
- timeout_set_proc(&arptimer_to, arptimer, &arptimer_to);
+ timeout_set_flags(&arptimer_to, arptimer, &arptimer_to,
+ KCLOCK_NONE, TIMEOUT_PROC | TIMEOUT_MPSAFE);
timeout_add_sec(&arptimer_to, arpt_prune);
}