[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131129110243.1ce4e87b@nehalam.linuxnetplumber.net>
Date: Fri, 29 Nov 2013 11:02:43 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: David Miller <davem@...emloft.net>,
Martin Burri <martin.burri@...abb.com>,
Hagen Paul Pfeifer <hagen@...u.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH net 1/3] 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@...abb.com
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
--- a/net/sched/sch_netem.c 2013-11-29 10:40:59.687678738 -0800
+++ b/net/sched/sch_netem.c 2013-11-29 10:46:33.972003879 -0800
@@ -268,6 +268,7 @@ static bool loss_gilb_ell(struct netem_s
clg->state = 2;
if (net_random() < clg->a4)
return true;
+ break;
case 2:
if (net_random() < clg->a2)
clg->state = 1;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists