[PATCH] sch_netem: correctly order packets to be sent simultaneously

2005-11-18 Thread Andrea Bittau
From: Andrea Bittau <[EMAIL PROTECTED]> If two packets were queued to be sent at the same time in the future, their order would be reversed. This would occur because the queue is traversed back to front, and a position is found by checking whether the new packet needs to be sent befo

netem undesired packet re-ordering bug

2005-11-18 Thread Andrea Bittau
If packets are sent to the netem queue at the same time, they will be reversed, even if re-ordering has not been enabled. The problem is in sch_netem.c line 467: if (PSCHED_TLESS(cb->time_to_send, ncb->time_to_send)) The queue is being traversed from back to front. If A and B are sent at the sam