Add the same check as vlan(4) where we ignore the ifnet departure event if the

interface is just being renamed.

PR:		kern/169557
Submitted by:	Mark Johnston
MFC after:	3 days
This commit is contained in:
Andrew Thompson 2012-06-30 19:09:02 +00:00
parent 8046a47e76
commit 61587a8403

View File

@ -797,6 +797,9 @@ lagg_port_ifdetach(void *arg __unused, struct ifnet *ifp)
if ((lp = ifp->if_lagg) == NULL)
return;
/* If the ifnet is just being renamed, don't do anything. */
if (ifp->if_flags & IFF_RENAMING)
return;
sc = lp->lp_softc;