Date: Wed, 28 Dec 2022 15:31:36 GMT From: Zhenlei Huang <zlei@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f948cb717f50 - main - wg: Use NET_EPOCH_DRAIN_CALLBACKS macro Message-ID: <202212281531.2BSFVabY018104@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=f948cb717f50f3f53e0f76d9eb2bd36bc278cb3b commit f948cb717f50f3f53e0f76d9eb2bd36bc278cb3b Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2022-12-28 15:28:15 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2022-12-28 15:28:15 +0000 wg: Use NET_EPOCH_DRAIN_CALLBACKS macro Reviewed by: jhb, kp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D37734 --- 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 dba4c88601cd..ac85386794c7 100644 --- a/sys/dev/wg/if_wg.c +++ b/sys/dev/wg/if_wg.c @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212281531.2BSFVabY018104>