git: kernel - Enhance the FAIRQ ALTQ to use relative weightings

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 28 19:24:31 PDT 2011


commit df5dfeb3b9faaa4a8b3204bc3705c1c2b9a1d3bf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 28 19:22:15 2011 -0700

    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.

Summary of changes:
 sys/net/altq/altq_fairq.c |   60 +++++++++++++++++++++++++++++++-------------
 sys/net/altq/altq_fairq.h |    1 +
 usr.sbin/pfctl/pf.conf.5  |   23 ++++++++++++----
 3 files changed, 60 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/df5dfeb3b9faaa4a8b3204bc3705c1c2b9a1d3bf


-- 
DragonFly BSD source repository





More information about the Commits mailing list