get mxge to build, stage 26/many
authorAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Thu, 9 Jul 2009 11:08:55 +0000 (14:08 +0300)
committerAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Thu, 9 Jul 2009 11:08:55 +0000 (14:08 +0300)
- we don't need to check for vlans referencing us, this
  is taken care of in the background automagically

sys/dev/netif/mxge/if_mxge.c

index f0d319e..847c974 100644 (file)
@@ -4642,11 +4642,6 @@ mxge_detach(device_t dev)
 {
        mxge_softc_t *sc = device_get_softc(dev);
 
-       if (mxge_vlans_active(sc)) {
-               device_printf(sc->dev,
-                             "Detach vlans before removing module\n");
-               return EBUSY;
-       }
        lockmgr(&sc->driver_lock, LK_EXCLUSIVE);
        sc->dying = 1;
        if (sc->ifp->if_flags & IFF_RUNNING)