Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 638a52b8 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
		}
	}