diff options
Diffstat (limited to 'include/net/red.h')
-rw-r--r-- | include/net/red.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/red.h b/include/net/red.h index 2ed4358e329..a4eb37946f2 100644 --- a/include/net/red.h +++ b/include/net/red.h | |||
@@ -1,7 +1,6 @@ | |||
1 | #ifndef __NET_SCHED_RED_H | 1 | #ifndef __NET_SCHED_RED_H |
2 | #define __NET_SCHED_RED_H | 2 | #define __NET_SCHED_RED_H |
3 | 3 | ||
4 | #include <linux/config.h> | ||
5 | #include <linux/types.h> | 4 | #include <linux/types.h> |
6 | #include <net/pkt_sched.h> | 5 | #include <net/pkt_sched.h> |
7 | #include <net/inet_ecn.h> | 6 | #include <net/inet_ecn.h> |
@@ -213,7 +212,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p) | |||
213 | * Seems, it is the best solution to | 212 | * Seems, it is the best solution to |
214 | * problem of too coarse exponent tabulation. | 213 | * problem of too coarse exponent tabulation. |
215 | */ | 214 | */ |
216 | us_idle = (p->qavg * us_idle) >> p->Scell_log; | 215 | us_idle = (p->qavg * (u64)us_idle) >> p->Scell_log; |
217 | 216 | ||
218 | if (us_idle < (p->qavg >> 1)) | 217 | if (us_idle < (p->qavg >> 1)) |
219 | return p->qavg - us_idle; | 218 | return p->qavg - us_idle; |