]> git.hungrycats.org Git - linux/commit
[PKT_SCHED]: Distribution table fixes for netem.
authorStephen Hemminger <shemminger@osdl.org>
Mon, 30 Aug 2004 09:39:38 +0000 (02:39 -0700)
committerDavid S. Miller <davem@kernel.bkbits.net>
Mon, 30 Aug 2004 09:39:38 +0000 (02:39 -0700)
commit5cb7cafd497dcff3fa24388728638fb366d8e94e
tree246f0842eb75c46622834d9ebe2d12b42149e77d
parent2d94030662cc9fa38ed6c1b735361167367eb988
[PKT_SCHED]: Distribution table fixes for netem.

Fix some issues with netem.
 * fix memory link in q_destroy where distribution table not freed
 * fix math error in tabledist that made it work for only small values
 * change API for distribution table so scaling factor is constant and
   table size is determined by looking at the rtnetlink payload size.
   this is faster and simpler. Since haven't actually released the tools to load
   the table yet, this is the chance to get it right ;-)

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/pkt_sched.h
net/sched/sch_netem.c