igb: vlan could detect that the parent interface is gone; don't prevent detach
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 6 Apr 2012 09:27:58 +0000 (17:27 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 6 Apr 2012 09:27:58 +0000 (17:27 +0800)
sys/dev/netif/e1000/if_igb.c

index 4d2329e..6de2375 100644 (file)
@@ -636,12 +636,6 @@ igb_detach(device_t dev)
 
        INIT_DEBUGOUT("igb_detach: begin");
 
-       /* Make sure VLANS are not using driver */
-       if (adapter->ifp->if_vlantrunks != NULL) {
-               device_printf(dev,"Vlan in use, detach first\n");
-               return (EBUSY);
-       }
-
        IGB_CORE_LOCK(adapter);
        adapter->in_detach = 1;
        igb_stop(adapter);