netem: fix gemodel loss generator
authorstephen hemminger <stephen@networkplumber.org>
Fri, 29 Nov 2013 19:04:26 +0000 (11:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Nov 2013 17:49:29 +0000 (12:49 -0500)
commiteff7979f00b2c546f36f6829f4072c8db54763a9
tree9cf1f1f79e84513e1a8f6c2101aabc2a17ccb3df
parentab6c27be8178a4682446faa5aa017b948997937f
netem: fix gemodel loss generator

Patch from developers of the alternative loss models, downloaded from:
   http://netgroup.uniroma2.it/twiki/bin/view.cgi/Main/NetemCLG

 "in case 2, of the switch we change the direction of the inequality to
  net_random()>clg->a3, because clg->a3 is h in the GE model and when h
  is 0 all packets will be lost."

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_netem.c