aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-06-18 12:16:41 +0200
committerJakub Kicinski <kuba@kernel.org>2023-06-20 20:06:56 -0700
commitf0d952646bcf186d6d1bea6ec89f96b7e57f3b83 (patch)
tree47f0ca3fcdbb9e5fb697e034a774c97ada655f9b /net/unix/af_unix.c
parent92b08290859b09a2ead2dc553aaaadb015748536 (diff)
downloadlinux-f0d952646bcf186d6d1bea6ec89f96b7e57f3b83.tar.gz
linux-f0d952646bcf186d6d1bea6ec89f96b7e57f3b83.tar.bz2
linux-f0d952646bcf186d6d1bea6ec89f96b7e57f3b83.zip
netlabel: Reorder fields in 'struct netlbl_domaddr6_map'
Group some variables based on their sizes to reduce hole and avoid padding. On x86_64, this shrinks the size of 'struct netlbl_domaddr6_map' from 72 to 64 bytes. It saves a few bytes of memory and is more cache-line friendly. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Acked-by: Paul Moore <paul@paul-moore.com> Link: https://lore.kernel.org/r/aa109847260e51e174c823b6d1441f75be370f01.1687083361.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions