]> git.baikalelectronics.ru Git - kernel.git/commit
sch_hhf: fix return value of hhf_drop()
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 7 Oct 2015 23:47:32 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Oct 2015 11:49:33 +0000 (04:49 -0700)
commit7bf89b1672a2c57781adf6e74c9ddd8de30f6bc8
treeb9a9bc685d2acf1f7d5a01350b051acfb7696b95
parent90edea51c81f1368e6bc483ddf8feb1168389b2e
sch_hhf: fix return value of hhf_drop()

Similar to commit 49c6ba785fb0 ("fq_codel: fix return value of fq_codel_drop()")
->drop() is supposed to return the number of bytes it dropped,
but hhf_drop () returns the id of the bucket where it drops
a packet from.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Terry Lam <vtlam@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_hhf.c