提交 638a52b8 编写于 作者: S stephen hemminger 提交者: David S. Miller

netem: update backlog after drop

When packet is dropped from rb-tree netem the backlog statistic should
also be updated.
Reported-by: NСергеев Сергей <adron@yapic.net>
Signed-off-by: NStephen Hemminger <stephen@networkplumber.org>
Acked-by: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 455cc32b
...@@ -520,6 +520,7 @@ static unsigned int netem_drop(struct Qdisc *sch) ...@@ -520,6 +520,7 @@ static unsigned int netem_drop(struct Qdisc *sch)
skb->next = NULL; skb->next = NULL;
skb->prev = NULL; skb->prev = NULL;
len = qdisc_pkt_len(skb); len = qdisc_pkt_len(skb);
sch->qstats.backlog -= len;
kfree_skb(skb); kfree_skb(skb);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册