]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use different parts of the port_offset for index and offset
authorWilly Tarreau <w@1wt.eu>
Mon, 2 May 2022 08:46:09 +0000 (10:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 02:22:20 +0000 (19:22 -0700)
commitc4612da69f6707e9d3dc28f06e92cf6d74f68679
tree9c033e3c72e3a06f9e21db4470de505566af7049
parent197e7d665d247ea393de2218124cef21133d3dbf
tcp: use different parts of the port_offset for index and offset

Amit Klein suggests that we use different parts of port_offset for the
table's index and the port offset so that there is no direct relation
between them.

Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Moshe Kol <moshe.kol@mail.huji.ac.il>
Cc: Yossi Gilad <yossi.gilad@mail.huji.ac.il>
Cc: 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>
net/ipv4/inet_hashtables.c