]> 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)
commita442093774536e8644f88bc287a00dc63b9a8e98
treeb9a9bc685d2acf1f7d5a01350b051acfb7696b95
parent02c06b0f4940f4b993e31c2202a2899dc963026f
sch_hhf: fix return value of hhf_drop()

Similar to commit 019c2bb29c75 ("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