diff options
author | Willy Tarreau <w@1wt.eu> | 2022-05-02 11:46:14 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-05 05:22:33 +0300 |
commit | e8161345ddbb66e449abde10d2fdce93f867eba9 (patch) | |
tree | 57699c177cf0115d66ca9dc3eec9666d9f0a415d /init/Makefile | |
parent | 4c2c8f03a5ab7cb04ec64724d7d176d00bcc91e5 (diff) | |
download | linux-e8161345ddbb66e449abde10d2fdce93f867eba9.tar.xz |
tcp: drop the hash_32() part from the index calculation
In commit 190cc82489f4 ("tcp: change source port randomizarion at
connect() time"), the table_perturb[] array was introduced and an
index was taken from the port_offset via hash_32(). But it turns
out that hash_32() performs a multiplication while the input here
comes from the output of SipHash in secure_seq, that is well
distributed enough to avoid the need for yet another hash.
Suggested-by: Amit Klein <aksecurity@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'init/Makefile')
0 files changed, 0 insertions, 0 deletions