aboutsummaryrefslogtreecommitdiff
path: root/net/sched/sch_netem.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-11-29 11:02:43 -0800
committerDavid S. Miller <davem@davemloft.net>2013-11-30 12:49:28 -0500
commit7c2781fa92f5b9ca3188817a56a2ced0400355f3 (patch)
tree56c74f89a51e9c1a3796a3df2d95c0ffdeb42b8b /net/sched/sch_netem.c
parent98bf8362220af717862b8262b21348774890b7b4 (diff)
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/sched/sch_netem.c')
-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 75c94e59a3b..6e91323f3da 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;