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)
commit6ac644a8ae2dabf884a1b01e82e32d96ffe6eee5
treeb9a9bc685d2acf1f7d5a01350b051acfb7696b95
parentca7beb1fa776412ff80708ae98a8467fe4c52737
sch_hhf: fix return value of hhf_drop()

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