diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2008-04-05 17:24:44 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2008-04-05 17:24:44 +0000 |
| commit | 9c9191983b7368570cb5f285adf9887d8eb773e7 (patch) | |
| tree | 0fb2c696b95e8c812505b13c427ab0bfe9df9aef /sys/dev/de | |
| parent | 366ad76cd7a3e846da7a4ae3cd3c34db20e563c4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/de')
| -rw-r--r-- | sys/dev/de/if_de.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 35032897f73c..81335c12e1c3 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -4053,7 +4053,8 @@ tulip_txput(tulip_softc_t * const sc, struct mbuf *m) /* * bounce a copy to the bpf listener, if any. */ - BPF_MTAP(sc->tulip_ifp, m); + if (!(sc->tulip_flags & TULIP_DEVICEPROBE)) + BPF_MTAP(sc->tulip_ifp, m); /* * The descriptors have been filled in. Now get ready @@ -4437,13 +4438,16 @@ tulip_attach(tulip_softc_t * const sc) ifmedia_init(&sc->tulip_ifmedia, 0, tulip_ifmedia_change, tulip_ifmedia_status); - sc->tulip_flags &= ~TULIP_DEVICEPROBE; tulip_ifmedia_add(sc); tulip_reset(sc); TULIP_UNLOCK(sc); ether_ifattach(sc->tulip_ifp, sc->tulip_enaddr); + + TULIP_LOCK(sc); + sc->tulip_flags &= ~TULIP_DEVICEPROBE; + TULIP_UNLOCK(sc); } /* Release memory for a single descriptor ring. */ |
