Provide pluggable queueing interface for pf
authormikeb <mikeb@openbsd.org>
Tue, 2 May 2017 12:27:37 +0000 (12:27 +0000)
committermikeb <mikeb@openbsd.org>
Tue, 2 May 2017 12:27:37 +0000 (12:27 +0000)
commit74d689df2728259864170bce9049ead9e5ae7c17
tree345efbb1710a113dd309f0ca5297bb58004886e0
parentcb3087542b323ec5bf5db9dc64f0d54dc40cca40
Provide pluggable queueing interface for pf

By hiding H-FSC behind pfq_ops structure similar to the ifq_ops,
we provide a possibility to plug alternative queueing interfaces
for use in pf.  This reduces amount of H-FSC specific code in the
pf ioctl handler

While here, change the the order of elements in hfsc_class_stats
to provide some compatibility between queue stat structures of
different traffic conditioners.

No objections from henning@, ok sthen@
sys/net/hfsc.c
sys/net/hfsc.h
sys/net/pf_ioctl.c
sys/net/pfvar.h