Skip to content

Commit

Permalink
net_sched: red: Make minor corrections to comments
Browse files Browse the repository at this point in the history
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Ward authored and David S. Miller committed Apr 17, 2012
1 parent 244b65d commit 4362aaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/net/red.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(const struct red_parms
*
* dummy packets as a burst after idle time, i.e.
*
* p->qavg *= (1-W)^m
* v->qavg *= (1-W)^m
*
* This is an apparently overcomplicated solution (f.e. we have to
* precompute a table to make this calculation in reasonable time)
Expand Down Expand Up @@ -279,7 +279,7 @@ static inline unsigned long red_calc_qavg_no_idle_time(const struct red_parms *p
unsigned int backlog)
{
/*
* NOTE: p->qavg is fixed point number with point at Wlog.
* NOTE: v->qavg is fixed point number with point at Wlog.
* The formula below is equvalent to floating point
* version:
*
Expand Down Expand Up @@ -390,7 +390,7 @@ static inline void red_adaptative_algo(struct red_parms *p, struct red_vars *v)
if (red_is_idling(v))
qavg = red_calc_qavg_from_idle_time(p, v);

/* p->qavg is fixed point number with point at Wlog */
/* v->qavg is fixed point number with point at Wlog */
qavg >>= p->Wlog;

if (qavg > p->target_max && p->max_P <= MAX_P_MAX)
Expand Down

0 comments on commit 4362aaf

Please sign in to comment.