Paolo Valente 624b85fb96 pkt_sched: sch_qfq: fix the update of eligible-group sets
Between two invocations of make_eligible, the system virtual time may
happen to grow enough that, in its binary representation, a bit with
higher order than 31 flips. This happens especially with
TSO/GSO. Before this fix, the mask used in make_eligible was computed
as (1UL<<index_of_last_flipped_bit)-1, whose value is well defined on
a 64-bit architecture, because index_of_flipped_bit <= 63, but is in
general undefined on a 32-bit architecture if index_of_flipped_bit > 31.
The fix just replaces 1UL with 1ULL.

Signed-off-by: Paolo Valente <paolo.valente@unimore.it>
Reviewed-by: Fabio Checconi <fchecconi@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-06 02:47:05 -05:00
..
2013-01-14 15:09:36 -05:00
2011-01-19 23:31:12 -08:00
2012-07-12 07:54:46 -07:00
2012-09-24 16:31:37 -04:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2012-07-12 07:54:46 -07:00
2012-04-01 18:11:37 -04:00
2012-12-12 00:16:47 -05:00
2012-04-01 18:11:37 -04:00
2012-04-01 18:11:37 -04:00
2012-04-01 18:11:37 -04:00
2012-07-12 08:33:18 -07:00
2012-04-01 18:11:37 -04:00
2013-02-12 18:59:45 -05:00