Convert `t_lock', `r_keypair_lock' and `c_lock' rwlock(9)s to
authormvs <mvs@openbsd.org>
Tue, 5 Mar 2024 17:48:01 +0000 (17:48 +0000)
committermvs <mvs@openbsd.org>
Tue, 5 Mar 2024 17:48:01 +0000 (17:48 +0000)
commitefbb2e09ffebb712903070c7f89c2796597a6043
tree0c2a846116547548916da84aa6dc4d14f61aca85
parent4655771f036f05c2c2b1fd316000eb676e9d646c
Convert `t_lock', `r_keypair_lock' and `c_lock' rwlock(9)s to
corresponding mutex(9)es.

ifq_start() and following wg_qstart() could be called from software
interrupt context if bandwidth control is enabled in pf.conf(5). Remove
sleep points provided by rwlock(9)s from wg(4) output start routine.

looks ok claudio
sys/net/if_wg.c
sys/net/wg_noise.c
sys/net/wg_noise.h