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
@ -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 New Issue
Block a user