From: Cong Wang <hidden> Date: 2015-07-14 18:22:26
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 <redacted>
Signed-off-by: Cong Wang <redacted>
Signed-off-by: Cong Wang <redacted>
---
net/sched/sch_fq_codel.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
From: Eric Dumazet <hidden> Date: 2015-07-15 06:27:39
On Tue, 2015-07-14 at 11:21 -0700, Cong Wang wrote:
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 <redacted>
Signed-off-by: Cong Wang <redacted>
Signed-off-by: Cong Wang <redacted>
---
SGTM, thanks Cong.
Acked-by: Eric Dumazet <redacted>
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 <redacted>
Signed-off-by: Cong Wang <redacted>
Signed-off-by: Cong Wang <redacted>