]> git.baikalelectronics.ru Git - kernel.git/commit
net: Rearrange dst_entry layout to avoid useless padding.
authorDavid Miller <davem@davemloft.net>
Tue, 28 Nov 2017 20:40:53 +0000 (15:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:54:27 +0000 (09:54 -0500)
commit13ec4aba54f854b3c6a9005c06c9780f90f79e81
tree94c0053f39bcf2acf74b43fdf1a16c3defe8e6ca
parent7ae38114a6e5242523702dbc8ef5df5dd344aa24
net: Rearrange dst_entry layout to avoid useless padding.

We have padding to try and align the refcount on a separate cache
line.  But after several simplifications the padding has increased
substantially.

So now it's easy to change the layout to get rid of the padding
entirely.

We group the write-heavy __refcnt and __use with less often used
items such as the rcu_head and the error code.

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