net: Revert vnet/epair cleanup race mitigation
Revert the mitigation code for the vnet/epair cleanup race (done in r365457). r368237 introduced a more reliable fix. MFC after: 2 weeks Sponsored by: Modirum MDPay
This commit is contained in:
parent
e133271fc1
commit
7f883a9b5b
@ -1338,11 +1338,6 @@ if_vmove(struct ifnet *ifp, struct vnet *new_vnet)
|
||||
ifindex_free_locked(ifp->if_index);
|
||||
IFNET_WUNLOCK();
|
||||
|
||||
|
||||
/* Don't re-attach DYING interfaces. */
|
||||
if (ifp->if_flags & IFF_DYING)
|
||||
return (0);
|
||||
|
||||
/*
|
||||
* Perform interface-specific reassignment tasks, if provided by
|
||||
* the driver.
|
||||
|
@ -611,14 +611,8 @@ epair_qflush(struct ifnet *ifp)
|
||||
struct epair_softc *sc;
|
||||
|
||||
sc = ifp->if_softc;
|
||||
|
||||
/*
|
||||
* See epair_clone_destroy(), we can end up getting called twice.
|
||||
* Don't do anything on the second call.
|
||||
*/
|
||||
if (sc == NULL)
|
||||
return;
|
||||
|
||||
KASSERT(sc != NULL, ("%s: ifp=%p, epair_softc gone? sc=%p\n",
|
||||
__func__, ifp, sc));
|
||||
/*
|
||||
* Remove this ifp from all backpointer lists. The interface will not
|
||||
* usable for flushing anyway nor should it have anything to flush
|
||||
|
Loading…
x
Reference in New Issue
Block a user