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)
commitcd961c2ca98efbe7d738ca8720673fc03538b2b1
treef53abc9d2ac6bdd0659c46e30ac44e2cbdf74f01
parentb01543dfe67bb1d191998e90d20534dc354de059
netem: fix dequeue

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>
net/sched/sch_netem.c