summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2008-09-18 15:16:31 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2008-09-18 15:16:31 +0000
commit5eab433266681d6216c8e05ad5786344f11779c3 (patch)
tree9dfd93a6804acadebfb92a46d8dcdd141d2b3dd4 /sys/dev/ic
parent80e73464cddea0a649b4991ab2b43d25504d8f4f (diff)
Introduce the infrastructure required to support hardware VLAN tag
stripping: Add a field to the mbuf pkthdr to hold the tag and an mbuf flag that tells if the tag is valid. Inspired by FreeBSD. Struct packing suggested by kettenis@. csum_flags is now 16 bits. Adapt to this in the drivers. ok reyk@, henning@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/xl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 93426ee51a1..8f426de177d 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.80 2008/09/10 14:01:22 blambert Exp $ */
+/* $OpenBSD: xl.c,v 1.81 2008/09/18 15:16:30 naddy Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1184,8 +1184,9 @@ xl_rxeof(struct xl_softc *sc)
struct mbuf *m;
struct ifnet *ifp;
struct xl_chain_onefrag *cur_rx;
- int total_len = 0, sumflags = 0;
+ int total_len = 0;
u_int32_t rxstat;
+ u_int16_t sumflags = 0;
ifp = &sc->sc_arpcom.ac_if;