summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_ste.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-09-23 03:32:57 +0000
committerwpaul <wpaul@FreeBSD.org>1999-09-23 03:32:57 +0000
commit165d81879ead70b028b140d76d9143aefee5ce16 (patch)
tree6bbbef5ef1ef94b97c53f10e98f93f50d12e1be5 /sys/pci/if_ste.c
parent9e89242d36c564123e515222eb0c9174c38c469c (diff)
downloadFreeBSD-src-165d81879ead70b028b140d76d9143aefee5ce16.zip
FreeBSD-src-165d81879ead70b028b140d76d9143aefee5ce16.tar.gz
As suggested by phk, unconditionalize BPF support in these drivers. Since
there are stubs compiled into the kernel if BPF support is not enabled, there aren't any problems with unresolved symbols. The modules in /modules are compiled with BPF support enabled anyway, so the most this will do is bloat GENERIC a little.
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r--sys/pci/if_ste.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c
index aea212e..6be1d83 100644
--- a/sys/pci/if_ste.c
+++ b/sys/pci/if_ste.c
@@ -32,9 +32,6 @@
* $FreeBSD$
*/
-
-#include "bpf.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
@@ -49,9 +46,7 @@
#include <net/if_dl.h>
#include <net/if_media.h>
-#if NBPF > 0
#include <net/bpf.h>
-#endif
#include "opt_bdg.h"
#ifdef BRIDGE
@@ -726,11 +721,9 @@ again:
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = total_len;
-#if NBPF > 0
/* Handle BPF listeners. Let the BPF user see the packet. */
if (ifp->if_bpf)
bpf_mtap(ifp, m);
-#endif
#ifdef BRIDGE
if (do_bridge) {
@@ -746,7 +739,6 @@ again:
}
#endif
-#if NBPF > 0
/*
* Don't pass packet up to the ether_input() layer unless it's
* a broadcast packet, multicast packet, matches our ethernet
@@ -760,7 +752,6 @@ again:
continue;
}
}
-#endif
/* Remove header from mbuf and pass it on. */
m_adj(m, sizeof(struct ether_header));
@@ -1107,9 +1098,7 @@ static int ste_attach(dev)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPF > 0
bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
fail:
splx(s);
@@ -1566,14 +1555,12 @@ static void ste_start(ifp)
}
prev = cur_tx;
-#if NBPF > 0
/*
* If there's a BPF listener, bounce a copt of this frame
* to him.
*/
if (ifp->if_bpf)
bpf_mtap(ifp, cur_tx->ste_mbuf);
-#endif
}
if (cur_tx == NULL)
OpenPOWER on IntegriCloud