]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reinvent the used-flag for external mbufs. This and the on-card flag
authorharti <harti@FreeBSD.org>
Thu, 30 Oct 2003 10:43:52 +0000 (10:43 +0000)
committerharti <harti@FreeBSD.org>
Thu, 30 Oct 2003 10:43:52 +0000 (10:43 +0000)
commit58d62949d472bd6a380995d114281f52f5936d58
treeafc30ce35576338b0ab3c30dc860aad1fc1efa86
parenteae6949d99a11d72cef4ef9015743ae44c91c6d1
Reinvent the used-flag for external mbufs. This and the on-card flag
are now in the header of the external buffer itself which allows us
to manipulate them in the free routine without having to lock the softc
structure or the free list. To get space for these flags the chunk number
is reduced to 8 bit which amounts to a maximum of 256 chunks per allocated
page. This restriction is now enforced by a CTASSERT.
sys/dev/hatm/if_hatm.c
sys/dev/hatm/if_hatm_intr.c
sys/dev/hatm/if_hatmvar.h