]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: sch_fq: use hash_ptr()
authorEric Dumazet <edumazet@google.com>
Thu, 17 Nov 2016 17:48:30 +0000 (09:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2016 18:28:56 +0000 (13:28 -0500)
commitb4e5413f9c73a557bc7e35b49aad16ce1ffff4ac
tree4807f37e4dba51999dc397a80962569ed7ad7162
parent0e9de233c2b5dfd35bb96fc8d53db5d906f15dc0
net_sched: sch_fq: use hash_ptr()

When I wrote sch_fq.c, hash_ptr() on 64bit arches was awful,
and I chose hash_32().

Linus Torvalds and George Spelvin fixed this issue, so we can
use hash_ptr() to get more entropy on 64bit arches with Terabytes
of memory, and avoid the cast games.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c