OSDN Git Service

net: align pcpu_sw_netstats and pcpu_lstats structs
authorEric Dumazet <edumazet@google.com>
Fri, 16 Nov 2018 15:24:24 +0000 (07:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:37:13 +0000 (21:37 -0800)
commit9a5ee462302512b7f3929c19f0711715613ac418
treed5263091d182ab0fa517fce397c406b29beb32a7
parent7c460cf9cd1a4edec0c2c4aa121c3aab9c0a17f1
net: align pcpu_sw_netstats and pcpu_lstats structs

Do not risk spanning these small structures on two cache lines,
it is absolutely not worth it.

For 32bit arches, the hint might not be enough, but we do not
really care anymore.

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