diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-09-18 15:16:31 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-09-18 15:16:31 +0000 |
commit | 5eab433266681d6216c8e05ad5786344f11779c3 (patch) | |
tree | 9dfd93a6804acadebfb92a46d8dcdd141d2b3dd4 /share/man | |
parent | 80e73464cddea0a649b4991ab2b43d25504d8f4f (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 'share/man')
-rw-r--r-- | share/man/man9/mbuf.9 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index e6b570fc03a..1dde48fa168 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mbuf.9,v 1.34 2008/09/15 17:16:14 naddy Exp $ +.\" $OpenBSD: mbuf.9,v 1.35 2008/09/18 15:16:30 naddy Exp $ .\" .\" Copyright (c) 2001 Jean-Jacques Bernard-Gundol <jjbg@openbsd.org> .\" All rights reserved. @@ -25,7 +25,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 15 2008 $ +.Dd $Mdocdate: September 18 2008 $ .Dt MBUF 9 .Os .Sh NAME @@ -116,7 +116,8 @@ struct pkthdr { struct ifnet *rcvif; SLIST_HEAD(packet_tags, m_tag) tags; int len; - int csum_flags; + u_int16_t csum_flags; + u_int16_t ether_vtag; struct pkthdr_pf pf; }; @@ -260,6 +261,9 @@ for mbuf statistics. dropped by .Xr bpf 4 filter. +.It Dv M_VLANTAG +.Fa m_pkthdr.ether_vtag +variable is valid. .El .Pp An external cluster is used when the data to hold in the mbuf is |