diff options
author | thompsa <thompsa@FreeBSD.org> | 2012-05-09 00:56:11 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2012-05-09 00:56:11 +0000 |
commit | 1e276e2841745d5cc243f00bba120847f9bb3658 (patch) | |
tree | 1b2cadf02068908296d0510f3342886c888fe920 | |
parent | 680cd1f369fa3b1e4d1feff3c3d25c3a2a4f4b08 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/dev/tsec/if_tsec.c | 3 |
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); |