diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-09-23 03:32:57 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-09-23 03:32:57 +0000 |
commit | 165d81879ead70b028b140d76d9143aefee5ce16 (patch) | |
tree | 6bbbef5ef1ef94b97c53f10e98f93f50d12e1be5 /sys/pci/if_xl.c | |
parent | 9e89242d36c564123e515222eb0c9174c38c469c (diff) | |
download | FreeBSD-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_xl.c')
-rw-r--r-- | sys/pci/if_xl.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index dc45073..855f7cf 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -91,8 +91,6 @@ * PCI-based NICs. */ -#include "bpf.h" - #include <sys/param.h> #include <sys/systm.h> #include <sys/sockio.h> @@ -107,9 +105,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 @@ -1496,9 +1492,7 @@ done: if_attach(ifp); ether_ifattach(ifp); -#if NBPF > 0 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); -#endif fail: splx(s); @@ -1745,11 +1739,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) { @@ -1765,7 +1757,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 @@ -1779,7 +1770,6 @@ again: continue; } } -#endif /* Remove header from mbuf and pass it on. */ m_adj(m, sizeof(struct ether_header)); @@ -2198,14 +2188,12 @@ static void xl_start(ifp) } prev = cur_tx; -#if NBPF > 0 /* * If there's a BPF listener, bounce a copy of this frame * to him. */ if (ifp->if_bpf) bpf_mtap(ifp, cur_tx->xl_mbuf); -#endif } /* @@ -2347,14 +2335,12 @@ static void xl_start_90xB(ifp) prev->xl_ptr->xl_next = cur_tx->xl_phys; prev = cur_tx; -#if NBPF > 0 /* * If there's a BPF listener, bounce a copy of this frame * to him. */ if (ifp->if_bpf) bpf_mtap(ifp, cur_tx->xl_mbuf); -#endif XL_INC(idx, XL_TX_LIST_CNT); sc->xl_cdata.xl_tx_cnt++; |