Author: thompsa
Date: Wed May  9 00:56:11 2012
New Revision: 235147
URL: http://svn.freebsd.org/changeset/base/235147

Log:
  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.

Modified:
  head/sys/dev/tsec/if_tsec.c

Modified: head/sys/dev/tsec/if_tsec.c
==============================================================================
--- head/sys/dev/tsec/if_tsec.c Wed May  9 00:56:08 2012        (r235146)
+++ head/sys/dev/tsec/if_tsec.c Wed May  9 00:56:11 2012        (r235147)
@@ -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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to