netem: Fix off-by-one bug in reordering
authorVijay Subramanian <subramanian.vijay@gmail.com>
Thu, 19 Jan 2012 10:20:59 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2012 20:08:44 +0000 (15:08 -0500)
commita42b4799c683723e8c464de4026af085b2ebd5fa
tree303ebae69ea9f9db0a5bdf7020dc26c01af14afd
parent803143fbda719106017309d551d082e4b4e7c8c3
netem: Fix off-by-one bug in reordering

With netem reordering, a gap of N is supposed to reorder every Nth packet with
given reorder probability.  However, the code currently skips N packets and
reorders every (N+1)th packet.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_netem.c