Commit 638a52b8 authored by stephen hemminger's avatar stephen hemminger Committed by 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: default avatarСергеев Сергей <adron@yapic.net>
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 455cc32b
......@@ -520,6 +520,7 @@ static unsigned int netem_drop(struct Qdisc *sch)
skb->next = NULL;
skb->prev = NULL;
len = qdisc_pkt_len(skb);
sch->qstats.backlog -= len;
kfree_skb(skb);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment