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>
This commit is contained in:
parent
98bf836222
commit
7c2781fa92
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue