rhashtable: reorganize struct rhashtable layout
authorEric Dumazet <edumazet@google.com>
Sat, 31 Mar 2018 19:58:56 +0000 (12:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:25:39 +0000 (23:25 -0400)
commite5d672a0780d9e7118caad4c171ec88b8299398d
tree2d885d704df9eee43788e94bcac1142dd9b519fc
parent05c0b86b9696802fd0ce5676a92a63f1b455bdf3
rhashtable: reorganize struct rhashtable layout

While under frags DDOS I noticed unfortunate false sharing between
@nelems and @params.automatic_shrinking

Move @nelems at the end of struct rhashtable so that first cache line
is shared between all cpus, because almost never dirtied.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h