summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-25 02:08:09 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-25 02:08:09 +0000
commit841b49f6a42a7de299eec8fa44979733503e9bce (patch)
tree25a97386915dc747c19a14b56ea9827e034aefb0
parent29d628ade2027c2b9a48b4eec436abf20133a820 (diff)
Use ETHERTYPE_VLAN.
-rw-r--r--sys/dev/pci/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 3c1a62eabfe..3ad2342bb48 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
-/* $OpenBSD: if_em.c,v 1.45 2005/04/10 04:08:40 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.46 2005/04/25 02:08:08 brad Exp $ */
#include "bpfilter.h"
#include "vlan.h"
@@ -2651,7 +2651,7 @@ em_enable_vlans(struct em_softc *sc)
{
uint32_t ctrl;
- E1000_WRITE_REG(&sc->hw, VET, ETHERTYPE_8021Q);
+ E1000_WRITE_REG(&sc->hw, VET, ETHERTYPE_VLAN);
ctrl = E1000_READ_REG(&sc->hw, CTRL);
ctrl |= E1000_CTRL_VME;