git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
net
/
red.h
diff --git
a/include/net/red.h
b/include/net/red.h
index
a4eb379
..
2ed4358
100644
(file)
--- a/
include/net/red.h
+++ b/
include/net/red.h
@@
-1,6
+1,7
@@
#ifndef __NET_SCHED_RED_H
#define __NET_SCHED_RED_H
#ifndef __NET_SCHED_RED_H
#define __NET_SCHED_RED_H
+#include <linux/config.h>
#include <linux/types.h>
#include <net/pkt_sched.h>
#include <net/inet_ecn.h>
#include <linux/types.h>
#include <net/pkt_sched.h>
#include <net/inet_ecn.h>
@@
-212,7
+213,7
@@
static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p)
* Seems, it is the best solution to
* problem of too coarse exponent tabulation.
*/
* Seems, it is the best solution to
* problem of too coarse exponent tabulation.
*/
- us_idle = (p->qavg *
(u64)
us_idle) >> p->Scell_log;
+ us_idle = (p->qavg * us_idle) >> p->Scell_log;
if (us_idle < (p->qavg >> 1))
return p->qavg - us_idle;
if (us_idle < (p->qavg >> 1))
return p->qavg - us_idle;