]> git.baikalelectronics.ru Git - kernel.git/commit
fq_codel: fix return value of fq_codel_drop()
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 14 Jul 2015 18:21:58 +0000 (11:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jul 2015 04:36:35 +0000 (21:36 -0700)
commit019c2bb29c75f3f59c84a0d8d801a2c8a0d10cee
tree25faa506001a9836892255ab9ac41da19b5ce878
parent6cfb5d6eaf824aaee6b976e83574d420b822c24c
fq_codel: fix return value of fq_codel_drop()

The ->drop() is supposed to return the number of bytes it dropped,
however fq_codel_drop() returns the index of the flow where it drops
a packet from.

Fix this by introducing a helper to wrap fq_codel_drop().

Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq_codel.c