git: wg: Port #35: refactor noise keypair functions to avoid epoch
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:32 PST 2024
commit 13a64e4bd4b7331d26512c60470c49c295cc15ae
Author: Aaron LI <aly at aaronly.me>
Date: Fri Jan 5 21:09:33 2024 +0800
wg: Port #35: refactor noise keypair functions to avoid epoch
- Refactor the functions to avoid using epoch or deferred operations.
So noise_keypair_put() is simplified and remove the obsolete
noise_keypair_smr_free() function.
- Remove 'refcount_acquire_if_not_zero()' and use plain refcount instead,
since there's no more deferred frees.
- Use shared locks instead of epoch sections; meanwhile, rename
'r_keypair_mtx' to 'r_keypair_lock' because it now supports both
shared and exclusive locks.
Summary of changes:
sys/net/wg/wg_noise.c | 92 ++++++++++++++++++++++++---------------------------
1 file changed, 44 insertions(+), 48 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/13a64e4bd4b7331d26512c60470c49c295cc15ae
--
DragonFly BSD source repository
More information about the Commits
mailing list