replace the hand rolled lists of mbufs in hfsc_classq with an
authordlg <dlg@openbsd.org>
Sat, 18 Apr 2015 11:12:33 +0000 (11:12 +0000)
committerdlg <dlg@openbsd.org>
Sat, 18 Apr 2015 11:12:33 +0000 (11:12 +0000)
commitb4ecc4e574d718200762fb5bd430e1057d9040f7
tree5f3cf4b7b55a196989e56b4970f842a2324a4179
parent21aed1a77f78d4e8e2a00a7495284b681c672075
replace the hand rolled lists of mbufs in hfsc_classq with an
mbuf_list.

hfsc lists are very clever because they manage a fifo with a single
pointer by abusing the m_next pointer of the tail mbuf to point to
the head. clever but hard to read.

mbuf_lists are slightly bigger because they explicitely track the
head mbuf, but i got us that space back by inlining hfsc_classq
into hfsc_class and removing the unnecessary classq field.

ok henning@
sys/net/hfsc.c