]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dd a 24 bits wide ext_flags field to m_ext by reducing ext_type
authorAndre Oppermann <andre@FreeBSD.org>
Sat, 24 Aug 2013 13:15:42 +0000 (13:15 +0000)
committerAndre Oppermann <andre@FreeBSD.org>
Sat, 24 Aug 2013 13:15:42 +0000 (13:15 +0000)
commit894734cbd6b48588ea83c3e273fd226534f361ce
treee03c662cce205e4663aa5f84ea52766f0d649838
parentafb295cc9a7dea865455a30cd69936f6b95cfaf4
dd a 24 bits wide ext_flags field to m_ext by reducing ext_type
to 8 bits.  ext_type is an enumerator and the number of types we
have is a mere dozen.

A couple of ext_types are renumbered to fit within 8 bits.

EXT_VENDOR[1-4] and EXT_EXP[1-4] types for vendor-internal and
experimental local mapping.

The ext_flags field is currently unused but has a couple of flags
already defined for future use.  Again vendor and experimental
flags are provided for local mapping.

EXT_FLAG_BITS is provided for the printf(9) %b identifier.

Initialize and copy ext_flags in the relevant mbuf functions.

Improve alignment and packing of struct m_ext on 32 and 64 archs
by carefully sorting the fields.
sys/kern/kern_mbuf.c
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h