Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/playstation2/dev NBPFILTER is no more.



details:   https://anonhg.NetBSD.org/src/rev/74f0322775fb
branches:  trunk
changeset: 330217:74f0322775fb
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jun 29 11:18:40 2014 +0000

description:
NBPFILTER is no more.

diffstat:

 sys/arch/playstation2/dev/if_smap.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (55 lines):

diff -r c2e4a566c1d6 -r 74f0322775fb sys/arch/playstation2/dev/if_smap.c
--- a/sys/arch/playstation2/dev/if_smap.c       Sun Jun 29 09:52:43 2014 +0000
+++ b/sys/arch/playstation2/dev/if_smap.c       Sun Jun 29 11:18:40 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_smap.c,v 1.15 2014/03/31 11:25:49 martin Exp $      */
+/*     $NetBSD: if_smap.c,v 1.16 2014/06/29 11:18:40 mrg Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,11 +30,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.15 2014/03/31 11:25:49 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.16 2014/06/29 11:18:40 mrg Exp $");
 
 #include "debug_playstation2.h"
 
-#include "bpfilter.h"
 #include "rnd.h"
 
 #include <sys/param.h>
@@ -67,10 +66,8 @@
 #include <netinet/ip.h>
 #include <netinet/if_inarp.h>
 
-#if NBPFILTER > 0
 #include <net/bpf.h>
 #include <net/bpfdesc.h>
-#endif
 
 #include <playstation2/dev/spdvar.h>
 #include <playstation2/dev/spdreg.h>
@@ -421,10 +418,8 @@
                _wbflush();
                
                if (m != NULL) {
-#if NBPFILTER > 0
                        if (ifp->if_bpf)
                                bpf_mtap(ifp->if_bpf, m);
-#endif
                        (*ifp->if_input)(ifp, m);
                }
        }
@@ -523,10 +518,8 @@
 
                IFQ_DEQUEUE(&ifp->if_snd, m0);
                KDASSERT(m0 != NULL);
-#if NBPFILTER > 0
                if (ifp->if_bpf)
                        bpf_mtap(ifp->if_bpf, m0);
-#endif
 
                p = (u_int8_t *)sc->tx_buf;
                q = p + sz;



Home | Main Index | Thread Index | Old Index