Re: [PATCH net-next] netpoll: optimize struct layout for cache efficiency

From: Jakub Kicinski
Date: Tue Mar 25 2025 - 13:00:45 EST


On Tue, 25 Mar 2025 09:50:21 -0700 Breno Leitao wrote:
> > It's a little odd to leave the tracker in hot data, if you do it
> > should at least be adjacent to the pointer it tracks?
>
> Double-checking this better, netdevice_tracker is NOT on the hot path.
> It is only used on the setup functions.
>
> If you think this is not a total waste of time, I will send a v2 moving
> it to the bottom.

I'd keep it next to dev. A bit of packing to save space is fine,
but let's prioritize readability during the reshuffle.
Note that net-next is closed for the MW.