mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
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…
x
Reference in New Issue
Block a user