]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
netfilter: xt_HMARK: modulus is expensive for hash calculation
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 May 2012 00:01:46 +0000 (02:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 16 May 2012 22:56:35 +0000 (00:56 +0200)
commitc44f5faa8e8c2036da2ba656f79b57a737543aff
tree01077e73629b4adeff0f7b05d5cca2cdde4cca59
parent58618115492711d99fbccb79c5317299e32231fe
netfilter: xt_HMARK: modulus is expensive for hash calculation

Use:

((u64)(HASH_VAL * HASH_SIZE)) >> 32

as suggested by David S. Miller.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_HMARK.c