From 28aafd1768e5e8dbd892520747bf6d402b8a702e Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 5 Sep 2001 23:33:58 +0000 Subject: [PATCH] Deconditionalize vlan support. --- sys/dev/fxp/if_fxp.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index d4001885b834..3f8f2aac6c2f 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -32,8 +32,6 @@ * Intel EtherExpress Pro/100B PCI Fast Ethernet driver */ -#include "vlan.h" - #include #include #include @@ -65,10 +63,8 @@ #include /* for vtophys */ #include /* for DELAY */ -#if NVLAN > 0 #include #include -#endif #include #include /* for PCIM_CMD_xxx */ @@ -550,10 +546,9 @@ fxp_attach(device_t dev) /* turn on the extended TxCB feature */ sc->flags |= FXP_FLAG_EXT_TXCB; -#if NVLAN > 0 + /* enable reception of long frames for VLAN */ sc->flags |= FXP_FLAG_LONG_PKT_EN; -#endif } /* @@ -611,12 +606,10 @@ fxp_attach(device_t dev) */ ether_ifattach(ifp, ETHER_BPF_SUPPORTED); -#if NVLAN > 0 /* * Tell the upper layer(s) we support long frames. */ ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); -#endif /* * Let the system queue as many packets as we have available @@ -1216,7 +1209,7 @@ rcvloop: m_freem(m); goto rcvloop; } -#if NVLAN > 0 + /* * Drop the packet if it has CRC * errors. This test is only needed @@ -1228,7 +1221,7 @@ rcvloop: m_freem(m); goto rcvloop; } -#endif + m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = total_len; eh = mtod(m, struct ether_header *); @@ -1510,11 +1503,7 @@ fxp_init(void *xsc) cbp->ext_txcb_dis = sc->flags & FXP_FLAG_EXT_TXCB ? 0 : 1; cbp->ext_stats_dis = 1; /* disable extended counters */ cbp->keep_overrun_rx = 0; /* don't pass overrun frames to host */ -#if NVLAN > 0 cbp->save_bf = sc->chip == FXP_CHIP_82557 ? 1 : prm; -#else - cbp->save_bf = prm; /* save bad frames */ -#endif cbp->disc_short_rx = !prm; /* discard short packets */ cbp->underrun_retry = 1; /* retry mode (once) on DMA underrun */ cbp->two_frames = 0; /* do not limit FIFO to 2 frames */