]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cc943e116d7aabd15050b3aa2a20ccdd6271b43
tree303ebae69ea9f9db0a5bdf7020dc26c01af14afd
parent8ab19e7d3154935ea9e26b72f243009bbc17c503
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