rhashtable: ensure cache line alignment on bucket_table
authorEric Dumazet <[email protected]>
Fri, 20 Feb 2015 14:48:57 +0000 (06:48 -0800)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Thomas Graf <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/rhashtable.h