RE: [RFC] increase name sizes and reorder structures

Morten Brørup <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <[email protected]>
> From: Stephen Hemminger [mailto:[email protected]]
> Sent: Thursday, 13 August 2026 19.13
> 
> This is a trial balloon to see what Morten's suggestion would
> look like.
> 
> Increase memzone name size to 64 and reorder structure
> to keep it cache friendly.  Move the zone name to the end of
> struct rte_memzone and order the remaining members by size.
> The structure is then naturally aligned
> with no internal padding on both 64-bit and 32-bit targets, so the
> __rte_packed_begin/end markers can be removed.
> 
> With memzone size of 64 but don't need all that for stack names.
> Increase the size to 32 which adds some space without impacting
> cache layout.
> 
> The memzone increase to 64 allows ring names to grow to 32 characters.
> Don't need to go larger which could cause cache changes when ring is
> embedded in structures.
> 
> Bugzilla ID: 1984
> 
> Reported-by: Morten Brørup <[email protected]>
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---

Not as much as I hoped for, but non-intrusive.
A small improvement is still an improvement!

Typo in the release notes:
"incre   " -> "increased"

Reviewed-by: Morten Brørup <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.