diff options
Diffstat (limited to 'net/sched/sch_qfq.c')
-rw-r--r-- | net/sched/sch_qfq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_qfq.c b/net/sched/sch_qfq.c index 103343408593..7b0325459e71 100644 --- a/net/sched/sch_qfq.c +++ b/net/sched/sch_qfq.c | |||
@@ -817,11 +817,11 @@ skip_unblock: | |||
817 | static void qfq_update_start(struct qfq_sched *q, struct qfq_class *cl) | 817 | static void qfq_update_start(struct qfq_sched *q, struct qfq_class *cl) |
818 | { | 818 | { |
819 | unsigned long mask; | 819 | unsigned long mask; |
820 | uint32_t limit, roundedF; | 820 | u64 limit, roundedF; |
821 | int slot_shift = cl->grp->slot_shift; | 821 | int slot_shift = cl->grp->slot_shift; |
822 | 822 | ||
823 | roundedF = qfq_round_down(cl->F, slot_shift); | 823 | roundedF = qfq_round_down(cl->F, slot_shift); |
824 | limit = qfq_round_down(q->V, slot_shift) + (1UL << slot_shift); | 824 | limit = qfq_round_down(q->V, slot_shift) + (1ULL << slot_shift); |
825 | 825 | ||
826 | if (!qfq_gt(cl->F, q->V) || qfq_gt(roundedF, limit)) { | 826 | if (!qfq_gt(cl->F, q->V) || qfq_gt(roundedF, limit)) { |
827 | /* timestamp was stale */ | 827 | /* timestamp was stale */ |