Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Sep 2006 17:07:25 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        freebsd-arch@freebsd.org,  freebsd-net@freebsd.org
Cc:        yar@comp.chem.msu.su, glebius@freebsd.org
Subject:   Moving ethernet VLAN tags into the mbuf packet header (from mtags)
Message-ID:  <450035AD.3040600@freebsd.org>

next in thread | raw e-mail | index | archive | help
With the recent addition of a 16bit field for TSO into the mbuf packet
header we've got 16bits left over.  I've reserved these bits for the
ethernet VLAN tagging of packet to do away with the allocated mbuf mtag.

The change is rather mechanical.  Patch available here:

  http://people.freebsd.org/~andre/vlan_pkthdr-20060907.diff

The big advantage is that we don't have to do a UMA zalloc for very incoming
vlan tagged packet.  The m_pkthdr.ether_vlan field is always present and its
validity depends on the M_VLANTAG flag.

Testing & reviews encouraged. :-)

-- 
Andre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?450035AD.3040600>