netem: fix dequeue
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 15 Feb 2012 20:28:25 +0000 (20:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Feb 2012 23:57:50 +0000 (18:57 -0500)
commit 50612537e9 (netem: fix classful handling) added two errors in
netem_dequeue()

1) After checking skb at the head of tfifo queue for time constraints,
   it dequeues tail skb, thus adding unwanted reordering.

2) qdisc stats are updated twice per packet
   (one when packet dequeued from tfifo, once when delivered)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found