diff options
author | 2016-09-21 07:41:49 +0000 | |
---|---|---|
committer | 2016-09-21 07:41:49 +0000 | |
commit | e402c1de3463894a6e97fbc8a57d6ade6959c8ae (patch) | |
tree | fa9086578cf4f0085ed20770323646a4572a1f7c /sys/net/if_mpe.c | |
parent | Test ART implementation by default. (diff) | |
download | wireguard-openbsd-e402c1de3463894a6e97fbc8a57d6ade6959c8ae.tar.xz wireguard-openbsd-e402c1de3463894a6e97fbc8a57d6ade6959c8ae.zip |
Remove recursive splsoftnet() calls, from David Hill.
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r-- | sys/net/if_mpe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c index dc228ce7ddc..d1c0ad054e0 100644 --- a/sys/net/if_mpe.c +++ b/sys/net/if_mpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpe.c,v 1.54 2016/04/13 11:41:15 mpi Exp $ */ +/* $OpenBSD: if_mpe.c,v 1.55 2016/09/21 07:41:49 mpi Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -117,15 +117,12 @@ int mpe_clone_destroy(struct ifnet *ifp) { struct mpe_softc *mpeif = ifp->if_softc; - int s; LIST_REMOVE(mpeif, sc_list); if (mpeif->sc_smpls.smpls_label) { - s = splsoftnet(); rt_ifa_del(&mpeif->sc_ifa, RTF_MPLS, smplstosa(&mpeif->sc_smpls)); - splx(s); } if_detach(ifp); |