git: 17920f833510 - main - bridge(4): Remove epoch_enter during destruction
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Mar 2026 17:58:59 UTC
The branch main has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=17920f8335106487968d7928d01b34300756ea00
commit 17920f8335106487968d7928d01b34300756ea00
Author: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-03-19 11:18:42 +0000
Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-03-19 17:56:45 +0000
bridge(4): Remove epoch_enter during destruction
bridge doesn't require to enter epoch during destruction.
Reviewed by: zlei, glebius
Differential Revision: https://reviews.freebsd.org/D55935
---
sys/net/if_bridge.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index d69fe85453f9..de991b8464c0 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -934,7 +934,6 @@ bridge_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
{
struct bridge_softc *sc = ifp->if_softc;
struct bridge_iflist *bif;
- struct epoch_tracker et;
BRIDGE_LOCK(sc);
@@ -960,13 +959,9 @@ bridge_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
BRIDGE_LIST_UNLOCK();
bstp_detach(&sc->sc_stp);
-
- NET_EPOCH_ENTER(et);
#ifdef ALTQ
IFQ_PURGE(&ifp->if_snd);
#endif
- NET_EPOCH_EXIT(et);
-
ether_ifdetach(ifp);
if_free(ifp);