Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Remove bpf_tap() call in rx. It's done in if_per...



details:   https://anonhg.NetBSD.org/src/rev/2e8ab88f1e8f
branches:  trunk
changeset: 320074:2e8ab88f1e8f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jun 22 09:13:59 2018 +0000

description:
Remove bpf_tap() call in rx. It's done in if_percpuq_softint().

diffstat:

 sys/dev/pci/if_de.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 8a39c2df12ff -r 2e8ab88f1e8f sys/dev/pci/if_de.c
--- a/sys/dev/pci/if_de.c       Fri Jun 22 09:06:04 2018 +0000
+++ b/sys/dev/pci/if_de.c       Fri Jun 22 09:13:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_de.c,v 1.152 2018/06/22 04:17:42 msaitoh Exp $      */
+/*     $NetBSD: if_de.c,v 1.153 2018/06/22 09:13:59 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1994-1997 Matt Thomas (matt%3am-software.com@localhost)
@@ -37,7 +37,7 @@
  *   board which support 21040, 21041, or 21140 (mostly).
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.152 2018/06/22 04:17:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.153 2018/06/22 09:13:59 msaitoh Exp $");
 
 #define        TULIP_HDR_DATA
 
@@ -3639,10 +3639,6 @@
 #endif /* TULIP_BUS_DMA */
 
            eh = *mtod(ms, struct ether_header *);
-           if (sc->tulip_bpf != NULL) {
-               if (me == ms)
-                   bpf_tap(ifp, mtod(ms, void *), total_len);
-           }
            sc->tulip_flags |= TULIP_RXACT;
            if ((sc->tulip_flags & (TULIP_PROMISC|TULIP_HASHONLY))
                    && (eh.ether_dhost[0] & 1) == 0



Home | Main Index | Thread Index | Old Index