net: sctp: reorder sctp_globals to reduce cacheline usage
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 26 Aug 2013 14:34:00 +0000 (16:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 18:55:54 +0000 (14:55 -0400)
commit76bfd8984430be5b19727d09f6ab5e1d7a247f8c
treea41d90d3aa24724ada4945fca3085dfeab9bef4b
parent03536cc3ad611f29a35803d37a44414b823135c3
net: sctp: reorder sctp_globals to reduce cacheline usage

Reduce cacheline usage from 2 to 1 cacheline for sctp_globals structure. By
reordering elements, we can close gaps and simply achieve the following:

Current situation:
  /* size: 80, cachelines: 2, members: 10 */
  /* sum members: 57, holes: 4, sum holes: 16 */
  /* padding: 7 */
  /* last cacheline: 16 bytes */

Afterwards:
  /* size: 64, cachelines: 1, members: 10 */
  /* padding: 7 */

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h