From: Jacob Keller <jacob.e.keller@intel.com>
To: Alexander Lobakin <aleksander.lobakin@intel.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Simon Horman <horms@kernel.org>,
<intel-wired-lan@lists.osuosl.org>, <netdev@vger.kernel.org>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v3 2/9] ice: use cacheline groups for ice_rx_ring structure
Date: Fri, 14 Nov 2025 15:54:11 -0800 [thread overview]
Message-ID: <c1d1b328-2a2d-4b74-86b7-df4584b0eb22@intel.com> (raw)
In-Reply-To: <828b75f2-6717-4f30-a62a-4992b03ef74f@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 2019 bytes --]
On 11/14/2025 7:36 AM, Alexander Lobakin wrote:
> From: Jacob Keller <jacob.e.keller@intel.com>
> Date: Fri, 7 Nov 2025 15:31:46 -0800
>
>> The ice ring structure was reorganized back by commit 65124bbf980c ("ice:
>> Reorganize tx_buf and ring structs"), and later split into a separate
>> ice_rx_ring structure by commit e72bba21355d ("ice: split ice_ring onto
>> Tx/Rx separate structs")
>>
>> The ice_rx_ring structure has comments left over from this prior
>> reorganization indicating which fields belong to which cachelines.
>> Unfortunately, these comments are not all accurate. The intended layout is
>> for x86_64 systems with a 64-byte cache.
>>
>> * Cacheline 1 spans from the start of the struct to the end of the rx_fqes
>> and xdp_buf union. The comments correctly match this.
>>
>> * Cacheline 2 spans from hdr_fqes to the end of hdr_truesize, but the
>> comment indicates it should end xdp and xsk union.
>>
>> * Cacheline 3 spans from the truesize field to the xsk_pool, but the
>> comment wants this to be from the pkt_ctx down to the rcu head field.
>>
>> * Cacheline 4 spans from the rx_hdr_len down to the flags field, but the
>> comment indicates that it starts back at the ice_channel structure
>> pointer.
>>
>> * Cacheline 5 is indicated to cover the xdp_rxq. Because this field is
>> aligned to 64 bytes, this is actually true. However, there is a large 45
>> byte gap at the end of cacheline 4.
>
> Sorry for reviewing this so late, but these comments really are outdated
> as hell and don't really reflect what we'd like to achieve.
>
> I would like to work together with you on rearranging and packing both
> structures in an optimal way, the same what I did quite a bit ago for idpf.
>
> Maybe we could drop the series from the next-queue for now?
>
Sounds good. I can probably also respin the other parts to avoid needing
to rely on this change, and we can work together to fix this properly.
Thanks,
Jake
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2025-11-14 23:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 23:31 [Intel-wired-lan] [PATCH iwl-next v3 0/9] ice: properly use u64_stats API for all ring stats Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 1/9] ice: initialize ring_stats->syncp Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 2/9] ice: use cacheline groups for ice_rx_ring structure Jacob Keller
2025-11-14 15:36 ` Alexander Lobakin
2025-11-14 23:54 ` Jacob Keller [this message]
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 3/9] ice: use cacheline groups for ice_tx_ring structure Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 4/9] ice: move prev_pkt from ice_txq_stats to ice_tx_ring Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 5/9] ice: pass pointer to ice_fetch_u64_stats_per_ring Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 6/9] ice: remove ice_q_stats struct and use struct_group Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 7/9] ice: use u64_stats API to access pkts/bytes in dim sample Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 8/9] ice: shorten ring stat names and add accessors Jacob Keller
2025-11-07 23:31 ` [Intel-wired-lan] [PATCH iwl-next v3 9/9] ice: convert all ring stats to u64_stats_t Jacob Keller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1d1b328-2a2d-4b74-86b7-df4584b0eb22@intel.com \
--to=jacob.e.keller@intel.com \
--cc=aleksander.lobakin@intel.com \
--cc=aleksandr.loktionov@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=netdev@vger.kernel.org \
--cc=przemyslaw.kitszel@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).