[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c83bb6cf8f0d1ea8f5e3da690cda5e9742498a39.camel@codeconstruct.com.au>
Date: Mon, 19 Jun 2023 22:06:59 +0800
From: Jeremy Kerr <jk@...econstruct.com.au>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Matt Johnston <matt@...econstruct.com.au>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] mctp: Reorder fields in 'struct mctp_route'
Hi Christoph,
> Group some variables based on their sizes to reduce hole and avoid
> padding. On x86_64, this shrinks the size of 'struct mctp_route' from
> 72 to 64 bytes.
>
> It saves a few bytes of memory and is more cache-line friendly.
The savings will be fairly minimal, but this doesn't affect readability
for the route struct. LGTM.
Acked-by: Jeremy Kerr <jk@...econstruct.com.au>
Thanks!
Jeremy
Powered by blists - more mailing lists