Date: Wed, 26 Mar 2008 21:10:02 GMT From: John Baldwin <jhb@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/120915: [de] [patch] GENERIC does not boot: if_de is broken Message-ID: <200803262110.m2QLA2cU036051@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/120915; it has been noted by GNATS. From: John Baldwin <jhb@FreeBSD.org> To: bug-followup@FreeBSD.org, pmc@citylink.dinoex.sub.org Cc: Subject: Re: kern/120915: [de] [patch] GENERIC does not boot: if_de is broken Date: Wed, 26 Mar 2008 17:01:24 -0400 This patch is a slight variant on the above and other places in the driver use the DEVICEPROBE test to determine if the mediaselect testpacket bit is being done: Index: if_de.c =================================================================== RCS file: /usr/cvs/src/sys/dev/de/if_de.c,v retrieving revision 1.183 diff -u -r1.183 if_de.c --- if_de.c 7 Jun 2007 00:28:47 -0000 1.183 +++ if_de.c 26 Mar 2008 20:58:19 -0000 @@ -4053,7 +4053,8 @@ /* * 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 -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803262110.m2QLA2cU036051>