git: wg: Port #3: replace uma(9) with objcache(9)
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:26 PST 2024
commit be332237f0ef8f26bae6fde3847a4c9a6247c74b
Author: Aaron LI <aly at aaronly.me>
Date: Thu Sep 21 21:31:41 2023 +0800
wg: Port #3: replace uma(9) with objcache(9)
Note that the ocflags of objcache_get() is only used when a new object
needs to be allocated using the backend allocator, so we cannot depend
on flags such as M_ZERO. As a result, we manually bzero() the allocated
object before using it.
Summary of changes:
sys/net/wg/if_wg.c | 17 +++++++++++------
sys/net/wg/wg_cookie.c | 18 +++++++++++-------
2 files changed, 22 insertions(+), 13 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/be332237f0ef8f26bae6fde3847a4c9a6247c74b
--
DragonFly BSD source repository
More information about the Commits
mailing list