summaryrefslogtreecommitdiff
path: root/sys/dev/mxge
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2011-04-06 15:45:32 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2011-04-06 15:45:32 +0000
commit3cae73118ebbcfc2f5ebe8df37479b7c12d346f3 (patch)
treecfbcacbf2861dc658c4e9e19a22e7935658b5d66 /sys/dev/mxge
parent66e0e139ee0ab932d91723f700a728620f2e4740 (diff)
Notes
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r--sys/dev/mxge/if_mxge.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index 6e6d6499700f..f6164d011d66 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -3054,6 +3054,14 @@ mxge_intr(void *arg)
static void
mxge_init(void *arg)
{
+ mxge_softc_t *sc = arg;
+ struct ifnet *ifp = sc->ifp;
+
+
+ mtx_lock(&sc->driver_mtx);
+ if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
+ (void) mxge_open(sc);
+ mtx_unlock(&sc->driver_mtx);
}