mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue