From 1e276e2841745d5cc243f00bba120847f9bb3658 Mon Sep 17 00:00:00 2001 From: thompsa Date: Wed, 9 May 2012 00:56:11 +0000 Subject: 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. --- sys/dev/tsec/if_tsec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/tsec/if_tsec.c') 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); -- cgit v1.1