kernel - Enhance the FAIRQ ALTQ to use relative weightings
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Mar 2011 02:22:15 +0000 (19:22 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Mar 2011 02:22:15 +0000 (19:22 -0700)
commitdf5dfeb3b9faaa4a8b3204bc3705c1c2b9a1d3bf
treebb63c72eaa5fb51e96e4464834a2ac558c030c5f
parentfeea37dcd9407178e44a9e96baf1a31dada1978d
kernel - Enhance the FAIRQ ALTQ to use relative weightings

* Previously the FAIRQ altq specification guaranteed a bandwidth minimum
  for each queue but then used a fixed priority model for any excess
  bandwidth.

* Now the FAIRQ uses the minimum bandwidth specifications to also calculate
  relative weightings for any excess bandwidth, and no longer uses a fixed
  priority model.

* This results in a better apportionment of excess bandwidth and allows
  bandwidth specifications to also be used as a pure weighting specification
  if desired.

* Fix bandwidth calculation.  The decay was being executed on every packet
  instead of once a second.
sys/net/altq/altq_fairq.c
sys/net/altq/altq_fairq.h
usr.sbin/pfctl/pf.conf.5