summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-11-29 20:02:43 +0100
committerDavid S. Miller <davem@davemloft.net>2013-11-30 18:49:28 +0100
commit7c2781fa92f5b9ca3188817a56a2ced0400355f3 (patch)
tree56c74f89a51e9c1a3796a3df2d95c0ffdeb42b8b /net
parentnet/hsr: Support iproute print_opt ('ip -details ...') (diff)
downloadlinux-7c2781fa92f5b9ca3188817a56a2ced0400355f3.tar.xz
linux-7c2781fa92f5b9ca3188817a56a2ced0400355f3.zip
netem: missing break in ge loss generator
There is a missing break statement in the Gilbert Elliot loss model generator which makes state machine behave incorrectly. Reported-by: Martin Burri <martin.burri@ch.abb.com Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sched/sch_netem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index 75c94e59a3bd..6e91323f3dac 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -268,6 +268,7 @@ static bool loss_gilb_ell(struct netem_sched_data *q)
clg->state = 2;
if (net_random() < clg->a4)
return true;
+ break;
case 2:
if (net_random() < clg->a2)
clg->state = 1;