diff options
author | 2018-04-01 12:27:11 +0200 | |
---|---|---|
committer | 2018-04-09 10:15:27 +0300 | |
commit | 9a17740e0ea1c9b1edd89836bb27c76272f54641 (patch) | |
tree | d3038013b241a1ee394aacb1ff7214e8b448b8bb /scripts/bpf_helpers_doc.py | |
parent | netfilter: ipvs: Add configurations of Maglev hashing (diff) | |
download | linux-dev-9a17740e0ea1c9b1edd89836bb27c76272f54641.tar.xz linux-dev-9a17740e0ea1c9b1edd89836bb27c76272f54641.zip |
ipvs: fix multiplicative hashing in sh/dh/lblc/lblcr algorithms
The sh/dh/lblc/lblcr algorithms are using Knuth's multiplicative
hashing incorrectly. Replace its use by the hash_32() macro, which
correctly implements this algorithm. It doesn't use the same constant,
but it shouldn't matter.
Signed-off-by: Vincent Bernat <vincent@bernat.im>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions