Skip to content

Commit f0d9526

Browse files
tititiou36kuba-moo
authored andcommitted
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>
1 parent 92b0829 commit f0d9526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/netlabel/netlabel_domainhash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ struct netlbl_domaddr6_map {
5757

5858
struct netlbl_dom_map {
5959
char *domain;
60-
u16 family;
6160
struct netlbl_dommap_def def;
61+
u16 family;
6262

6363
u32 valid;
6464
struct list_head list;

0 commit comments

Comments
 (0)