rhashtable: ensure cache line alignment on bucket_table
authorEric Dumazet <edumazet@google.com>
Fri, 20 Feb 2015 14:48:57 +0000 (06:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Feb 2015 02:59:57 +0000 (21:59 -0500)
commitb9ebafbe8cfeeddec881504c446cccd0d87a51b6
treebdae10b0c83047a55ed671b4d4d6ca7ebf26a2ab
parenta4176a9391868bfa87705bcd2e3b49e9b9dd2996
rhashtable: ensure cache line alignment on bucket_table

struct bucket_table contains mostly read fields :

size, locks_mask, locks.

Make sure these are not sharing a cache line with buckets[]

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h