Deconditionalize vlan support.

This commit is contained in:
brooks 2001-09-05 23:33:58 +00:00
parent 115d713955
commit 28aafd1768

View File

@ -32,8 +32,6 @@
* Intel EtherExpress Pro/100B PCI Fast Ethernet driver
*/
#include "vlan.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
@ -65,10 +63,8 @@
#include <vm/pmap.h> /* for vtophys */
#include <machine/clock.h> /* for DELAY */
#if NVLAN > 0
#include <net/if_types.h>
#include <net/if_vlan_var.h>
#endif
#include <pci/pcivar.h>
#include <pci/pcireg.h> /* 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 */