summaryrefslogtreecommitdiffstats
path: root/sys/dev/tsec
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2012-05-09 00:56:11 +0000
committerthompsa <thompsa@FreeBSD.org>2012-05-09 00:56:11 +0000
commit1e276e2841745d5cc243f00bba120847f9bb3658 (patch)
tree1b2cadf02068908296d0510f3342886c888fe920 /sys/dev/tsec
parent680cd1f369fa3b1e4d1feff3c3d25c3a2a4f4b08 (diff)
downloadFreeBSD-src-1e276e2841745d5cc243f00bba120847f9bb3658.zip
FreeBSD-src-1e276e2841745d5cc243f00bba120847f9bb3658.tar.gz
Do not reinitialise the interface if it is already running, this prevents the
bootp+nfs code from working as it calls init on each dhcp send and rx fails to start in time.
Diffstat (limited to 'sys/dev/tsec')
-rw-r--r--sys/dev/tsec/if_tsec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c
index e0a9c7e..1d87b30d 100644
--- a/sys/dev/tsec/if_tsec.c
+++ b/sys/dev/tsec/if_tsec.c
@@ -358,6 +358,9 @@ tsec_init_locked(struct tsec_softc *sc)
struct ifnet *ifp = sc->tsec_ifp;
uint32_t timeout, val, i;
+ if (ifp->if_drv_flags & IFF_DRV_RUNNING)
+ return;
+
TSEC_GLOBAL_LOCK_ASSERT(sc);
tsec_stop(sc);
OpenPOWER on IntegriCloud