mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
wg: Use NET_EPOCH_DRAIN_CALLBACKS macro
Reviewed by: jhb, kp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D37734
This commit is contained in:
parent
79c6e0b31f
commit
f948cb717f
1 changed files with 1 additions and 1 deletions
|
|
@ -2842,7 +2842,7 @@ wg_clone_destroy(struct ifnet *ifp)
|
|||
taskqgroup_drain_all(qgroup_wg_tqg);
|
||||
sx_xlock(&sc->sc_lock);
|
||||
wg_peer_destroy_all(sc);
|
||||
epoch_drain_callbacks(net_epoch_preempt);
|
||||
NET_EPOCH_DRAIN_CALLBACKS();
|
||||
sx_xunlock(&sc->sc_lock);
|
||||
sx_destroy(&sc->sc_lock);
|
||||
taskqgroup_detach(qgroup_wg_tqg, &sc->sc_handshake);
|
||||
|
|
|
|||
Loading…
Reference in a new issue