[PATCH] netem: fix unwanted reordering

Subsystems: netem network emulator, networking [general], tc subsystem, the rest

STALE5321d

2 messages, 1 author, 2012-02-16 · open the first message on its own page

[PATCH] netem: fix unwanted reordering

From: Eric Dumazet <hidden>
Date: 2012-02-16 05:49:39

commit 50612537e9 (netem: fix classful handling) added in typo in
netem_dequeue() :

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

Signed-off-by: Eric Dumazet <redacted>
---
 net/sched/sch_netem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index e83d61c..1db8ff0 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -501,7 +501,7 @@ tfifo_dequeue:
 
 		/* if more time remaining? */
 		if (cb->time_to_send <= psched_get_time()) {
-			skb = qdisc_dequeue_tail(sch);
+			skb = qdisc_dequeue_head(sch);
 			if (unlikely(!skb))
 				goto qdisc_dequeue;
 

Re: [PATCH] netem: fix unwanted reordering

From: Eric Dumazet <hidden>
Date: 2012-02-16 06:13:11

Le jeudi 16 février 2012 à 06:49 +0100, Eric Dumazet a écrit :
commit 50612537e9 (netem: fix classful handling) added in typo in
netem_dequeue() :

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

Signed-off-by: Eric Dumazet <redacted>
---
 net/sched/sch_netem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Please dont apply this patch, there is a 2nd issue I must fix as well

(qdisc stats are updated twice)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help