[PATCH net-next] netlabel: Reorder fields in 'struct netlbl_domaddr6_map'
Jiri Pirko
jiri at resnulli.us
Mon Jun 19 14:43:17 UTC 2023
Sun, Jun 18, 2023 at 12:16:41PM CEST, christophe.jaillet at wanadoo.fr wrote:
>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 at wanadoo.fr>
Reviewed-by: Jiri Pirko <jiri at nvidia.com>
More information about the Linux-security-module-archive
mailing list