git: wg: Port #2: replace mutex with lockmgr(9)
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:25 PST 2024
commit 139109cd78bcb82813e74f97e6a3d17bc809fd93
Author: Aaron LI <aly at aaronly.me>
Date: Thu Sep 21 14:54:32 2023 +0800
wg: Port #2: replace mutex with lockmgr(9)
Although we also have the mutex(9) API, but our lockmgr(9) API is more
versatile and heavily optimized. So replace mutex with lockmgr as well.
Summary of changes:
sys/net/wg/if_wg.c | 62 +++++++++++++++++++++++++-------------------------
sys/net/wg/wg_cookie.c | 25 ++++++++++----------
sys/net/wg/wg_cookie.h | 2 +-
sys/net/wg/wg_noise.c | 59 +++++++++++++++++++++++------------------------
4 files changed, 73 insertions(+), 75 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/139109cd78bcb82813e74f97e6a3d17bc809fd93
--
DragonFly BSD source repository
More information about the Commits
mailing list