Use static objects for struct rttimer_queue instead of dynamically
authorclaudio <claudio@openbsd.org>
Thu, 5 May 2022 13:57:40 +0000 (13:57 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 5 May 2022 13:57:40 +0000 (13:57 +0000)
commit2028c273aac9cb855f4a8512da37f710917f3231
tree7ea0b31322663b9c28c8190e5a01165df1c6a27d
parentbd5459da65d9ab41d8285e1dffb2b95f155ad35d
Use static objects for struct rttimer_queue instead of dynamically
allocate them.

Currently there are 6 rttimer_queues and not many more will follow. So
change rt_timer_queue_create() to rt_timer_queue_init() which now takes
a struct rttimer_queue * as argument which will be initialized.
Since this changes the gloabl vars from pointer to struct adjust other
callers as well.
OK bluhm@
12 files changed:
sys/net/route.c
sys/net/route.h
sys/netinet/ip_icmp.c
sys/netinet/ip_input.c
sys/netinet/ip_mroute.c
sys/netinet/ip_mroute.h
sys/netinet/ip_var.h
sys/netinet6/icmp6.c
sys/netinet6/ip6_input.c
sys/netinet6/ip6_mroute.c
sys/netinet6/ip6_mroute.h
sys/netinet6/ip6_var.h