Date: Wed, 11 Jan 2023 10:40:00 GMT From: Zhenlei Huang <zlei@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: cd4c0b01cbae - stable/13 - wg: Use NET_EPOCH_DRAIN_CALLBACKS macro Message-ID: <202301111040.30BAe0hH068668@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=cd4c0b01cbaeb6bfe99f786133ed291a855d7835 commit cd4c0b01cbaeb6bfe99f786133ed291a855d7835 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2022-12-28 15:28:15 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2023-01-11 10:35:59 +0000 wg: Use NET_EPOCH_DRAIN_CALLBACKS macro Reviewed by: jhb, kp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D37734 (cherry picked from commit f948cb717f50f3f53e0f76d9eb2bd36bc278cb3b) --- sys/dev/wg/if_wg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/wg/if_wg.c b/sys/dev/wg/if_wg.c index a9acc749bdff..ef4df5c0021e 100644 --- a/sys/dev/wg/if_wg.c +++ b/sys/dev/wg/if_wg.c @@ -2845,7 +2845,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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301111040.30BAe0hH068668>