Eric Dumazet
e2f82ac3fc
[NETFILTER]: xt_hashlimit: speedup hash_dst()
...
1) Using jhash2() instead of jhash() is a litle bit faster if applicable.
2) Thanks to jhash, hash value uses full 32 bits.
Instead of returning hash % size (implying a divide)
we return the high 32 bits of the (hash * size) that will
give results between [0 and size-1] and same hash distribution.
On most cpus, a multiply is less expensive than a divide, by an order
of magnitude.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 14:59:10 -08:00
..
2008-01-28 14:59:05 -08:00
2008-01-28 14:56:25 -08:00
2008-01-28 14:56:03 -08:00
2008-01-28 14:58:54 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:08 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:08 -08:00
2008-01-28 14:59:08 -08:00
2008-01-28 14:58:58 -08:00
2008-01-28 14:58:58 -08:00
2008-01-28 14:58:58 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:00 -08:00
2008-01-28 14:59:05 -08:00
2008-01-28 14:59:04 -08:00
2008-01-28 14:59:02 -08:00
2008-01-28 14:58:31 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:09 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:59:08 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:56:00 -08:00
2008-01-28 14:56:00 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:59:10 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:58:37 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:58:37 -08:00
2008-01-28 14:58:38 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:58:58 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:55 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:58:16 -08:00
2008-01-28 14:59:08 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:56:03 -08:00
2008-01-28 14:56:02 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:59:08 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:58:50 -08:00
2008-01-28 14:55:51 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00
2008-01-28 14:55:53 -08:00