]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: make netlink object hash threadsafe
authorMark Stapp <mstapp@nvidia.com>
Thu, 10 Feb 2022 18:29:59 +0000 (13:29 -0500)
committerMark Stapp <mstapp@nvidia.com>
Fri, 11 Feb 2022 22:03:26 +0000 (17:03 -0500)
commit348698095d1e1dc9904e13c86ce8492d89558a8d
treec848def37627fbd81f8304196c948fbc5d1c2dd7
parent70d79c359b321337c3791944ef068917b24748b6
zebra: make netlink object hash threadsafe

The recently-added hashtable of nlsock objects needs to be
thread-safe: it's accessed from the main and dplane pthreads.
Add a mutex for it, use wrapper apis when accessing it. Add
a per-OS init/terminate api so we can do init that's not
per-vrf or per-namespace.

Signed-off-by: Mark Stapp <mstapp@nvidia.com>
zebra/kernel_netlink.c
zebra/kernel_socket.c
zebra/rt.h
zebra/zebra_router.c