summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Ward <david.ward@ll.mit.edu>2012-04-16 03:17:22 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-16 23:53:11 -0400
commit4362aaf6054b9760652c7047cdf6fa852acb6cf7 (patch)
treee4346f7ecc24d63bd657348fba1b73724214f896 /include
parent244b65dbfede788f2fa3fe2463c44d0809e97c6b (diff)
downloadlinux-4362aaf6054b9760652c7047cdf6fa852acb6cf7.tar.gz
linux-4362aaf6054b9760652c7047cdf6fa852acb6cf7.tar.bz2
linux-4362aaf6054b9760652c7047cdf6fa852acb6cf7.zip
net_sched: red: Make minor corrections to comments
Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/red.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/red.h b/include/net/red.h
index 77d4c3745cb5..ef46058d35bf 100644
--- a/include/net/red.h
+++ b/include/net/red.h
@@ -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)
@@ -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:
*
@@ -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)