mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 01:54:00 +00:00
netem: update backlog after drop
When packet is dropped from rb-tree netem the backlog statistic should also be updated. Reported-by: Сергеев Сергей <adron@yapic.net> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
455cc32bf1
commit
638a52b801
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user