projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98bf836
)
netem: missing break in ge loss generator
author
stephen hemminger
<
[email protected]
>
Fri, 29 Nov 2013 19:02:43 +0000
(11:02 -0800)
committer
David S. Miller
<
[email protected]
>
Sat, 30 Nov 2013 17:49:28 +0000
(12:49 -0500)
There is a missing break statement in the Gilbert Elliot loss model
generator which makes state machine behave incorrectly.
Reported-by: Martin Burri <
[email protected]
Signed-off-by: Stephen Hemminger <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/sch_netem.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_netem.c
b/net/sched/sch_netem.c
index 75c94e59a3bd3889cd87460afe87ac611eeb024e..6e91323f3dac8ce4c0e1eb57dbaa19ecc7a2a639 100644
(file)
--- 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;