Skip to content

Commit

Permalink
Attempt fix of ramp function.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromi committed Mar 28, 2019
1 parent 3a7da32 commit 0852b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sch_cake.c
Expand Up @@ -599,7 +599,7 @@ static bool cobalt_should_drop(struct cobalt_vars *vars,

/* Simple SCE probability ramp from zero to target delay. */
if (is_bulk && p->inv_target) {
if(over_target || prandom_u32() < reciprocal_scale(sojourn, p->inv_target))
if(over_target || prandom_u32() < sojourn * p->inv_target)
vars->sce_marked = INET_ECN_set_sce(skb);
}

Expand Down

0 comments on commit 0852b65

Please sign in to comment.