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
2007-10-15 12:26:29 -07:00
2008-01-28 14:58:54 -08:00
2007-07-10 22:17:53 -07:00
2008-01-28 14:59:07 -08:00
2007-11-15 15:52:32 -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
2007-05-24 16:42:26 -07:00
2007-07-26 11:11:56 -07:00
2007-10-15 12:26:29 -07:00
2007-07-14 20:48:19 -07:00
2007-10-15 12:26:29 -07:00
2008-01-28 14:59:08 -08:00
2007-10-15 12:26:29 -07:00
2007-10-18 14:37:23 -07:00
2007-10-10 16:53:35 -07: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
2007-04-26 00:57:41 -07:00
2007-10-15 12:26:29 -07:00
2008-01-28 14:59:07 -08:00
2007-10-10 16:55:34 -07:00
2007-10-15 12:26:29 -07:00
2007-10-15 12:26:29 -07:00
2008-01-28 14:59:00 -08:00
2008-01-28 14:59:05 -08:00
2007-11-15 14:29:21 -08:00
2007-02-14 08:09:59 -08:00
2008-01-28 14:59:04 -08:00
2008-01-28 14:59:02 -08:00
2007-10-10 21:15:29 -07: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