netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Greenwalt, Paul" <paul.greenwalt@intel.com>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Cc: <intel-wired-lan@lists.osuosl.org>, <netdev@vger.kernel.org>,
	"Aleksandr Loktionov" <aleksandr.loktionov@intel.com>
Subject: Re: [PATCH iwl-next v3] ice: add E830 Earliest TxTime First Offload support
Date: Thu, 12 Jun 2025 13:56:41 -0700	[thread overview]
Message-ID: <edf8c701-fb5c-4af3-ac3a-073c6545bdbe@intel.com> (raw)
In-Reply-To: <aEmEvEzYphOGqgfZ@boxer>



On 6/11/2025 6:29 AM, Maciej Fijalkowski wrote:
> 2k per device or pf? if per device then what if you have 4 port device on
> system with 384 cores and you load xdp progs on each pf. and then try your
> feature which needs hw tx queues.
> 

Yes, the 2k Tx queues are per device and shared equally by each PF, so a
4-port device will have 512 Tx queues per PF. ETF is enabled on the
queue/classid specified by the user via the ETF Qdisc, so the user
decides which Tx queues have ETF enabled.

> what i was trying to say is that you don't ever call __ice_vsi_get_qs().
> this has an impact on XDP or any other feature that needs hw txqs.
> 

As you mentioned, I don't think it makes sense to enable ETF Qdisc on an
XDP queue. Would you suggest that the driver not support (i.e. block the
users request, XDP and ETF mutual exclusivity)?

>>>
>>
>> Hi Maciej,
>>
>> Thanks for the feedback. The reason for using a separate array for
>> tstamp rings is a hardware limitation: the tstamp ring must always have
>> more descriptors than the corresponding Tx ring, so there isn’t a strict
>> 1:1 mapping. This is due to the hardware’s fetch profile and MDD
>> prevention requirements (mentioned in the commit message).
>>
>> Because of this, it’s not possible to simply add a `tstamp` pointer to
>> each `ice_tx_ring`—the relationship isn’t direct, and the tstamp ring
>> may be shared or sized differently.
> 
> ok - up to you generally.
> 

I'll do some work and testing on your initial suggestion.

>>
>> Regarding the interface, I agree that passing an additional array can be
>> confusing. If you have a suggestion for a cleaner way to handle this
>> (e.g., a new structure or abstraction), I’m open to it.
> 
> keep existing interfaces that work on entire array and have a separate
> call for tstamp ring array as mentioned in initial comment.
> 

Thanks,
Paul



      reply	other threads:[~2025-06-12 20:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13 13:46 [PATCH iwl-next v3] ice: add E830 Earliest TxTime First Offload support Paul Greenwalt
2025-05-12  7:33 ` [Intel-wired-lan] " Rinitha, SX
2025-06-03  9:48 ` Maciej Fijalkowski
2025-06-03 16:38   ` Greenwalt, Paul
2025-06-03 18:45     ` Maciej Fijalkowski
2025-06-06 21:43       ` Greenwalt, Paul
2025-06-10 23:37         ` Greenwalt, Paul
2025-06-11 13:29           ` Maciej Fijalkowski
2025-06-12 20:56             ` Greenwalt, Paul [this message]

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=edf8c701-fb5c-4af3-ac3a-073c6545bdbe@intel.com \
    --to=paul.greenwalt@intel.com \
    --cc=aleksandr.loktionov@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=netdev@vger.kernel.org \
    /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).