• Eric Dumazet's avatar
    htb: fix two bugs · 196d97f6
    Eric Dumazet authored
    Commit 56b765b7 (htb: improved accuracy at high rates)
    introduced two bugs :
    
    1) one bstats_update() was inadvertently removed from
       htb_dequeue_tree(), breaking statistics/rate estimation.
    
    2) Missing qdisc_put_rtab() calls in htb_change_class(),
       leaking kernel memory, now struct htb_class no longer
       retains pointers to qdisc_rate_table structs.
    
       Since only rate is used, dont use qdisc_get_rtab() calls
       copying data we ignore anyway.
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Cc: Vimalkumar <j.vimal@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    196d97f6
sch_htb.c 42.6 KB