netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Abdul Rahim, Faizal" <faizal.abdul.rahim@linux.intel.com>
To: Vladimir Oltean <vladimir.oltean@nxp.com>,
	Paolo Abeni <pabeni@redhat.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
	faizal.abdul.rahim@intel.com, chwee.lin.choong@intel.com,
	horms@kernel.org, vitaly.lifshits@intel.com,
	dima.ruinskiy@intel.com, Mor Bar-Gabay <morx.bar.gabay@intel.com>,
	davem@davemloft.net, edumazet@google.com, andrew+netdev@lunn.ch,
	netdev@vger.kernel.org, kuba@kernel.org
Subject: Re: [PATCH net-next 5/7] igc: add private flag to reverse TX queue priority in TSN mode
Date: Wed, 18 Jun 2025 14:35:25 +0800	[thread overview]
Message-ID: <3e458cbe-a251-4f25-b264-6d1d441604c7@linux.intel.com> (raw)
In-Reply-To: <20250617121742.64no35fvb2bbnppf@skbuf>


Hi Vladimir,

Thanks for your feedback.

On 17/6/2025 8:17 pm, Vladimir Oltean wrote:
> Hi Paolo,
> 
> On Tue, Jun 17, 2025 at 12:06:14PM +0200, Paolo Abeni wrote:
>> On 6/11/25 8:03 PM, Tony Nguyen wrote:
>>> To harmonize TX queue priority behavior between taprio and mqprio, and
>>> to fix these issues without breaking long-standing taprio use cases,
>>> this patch adds a new private flag, called reverse-tsn-txq-prio, to
>>> reverse the TX queue priority. It makes queue 3 the highest and queue 0
>>> the lowest, reusing the TX arbitration logic already used by mqprio.
>> Isn't the above quite the opposite of what Vladimir asked in
>> https://lore.kernel.org/all/20250214113815.37ttoor3isrt34dg@skbuf/ ?
>>
>> """
>> I would expect that for uniform behavior, you would force the users a
>> little bit to adopt the new TX scheduling mode in taprio, otherwise any
>> configuration with preemptible traffic classes would be rejected by the
>> driver.
>> """
>>
>> I don't see him commenting on later version, @Vladimir: does this fits you?
> 
> Indeed, sorry for disappearing from the patch review process.
> 
> I don't see the discrepancy between what Faizal implemented and what we
> discussed. Specifically on the bit you quoted - patch "igc: add
> preemptible queue support in taprio" refuses taprio schedules with
> preemptible TCs if the user hasn't explicitly opted into
> IGC_FLAG_TSN_REVERSE_TXQ_PRIO. If that private flag isn't set,
> everything works as currently documented, just the new features are
> gated.
> 
> The name of the private flag is debatable IMHO, because it's taprio
> specific and the name doesn't reflect that (mqprio uses the "reverse"
> priority assignment to TX queues by default, and this flag doesn't
> change that). Also, "reverse" compared to what? Both operating modes can
Compared to the default Tx queue priority in TSN mode, where Tx q0 has the 
highest priority and q3 the lowest. My thinking behind the naming was based 
on how the relevant register fields are configured.

Snippet of i226 documentation:
"While in TSN mode each transmit queue is assigned a priority level by the 
TxQ_Priority fields in the TxARB register"
"TxQ_Priority_0: The transmit queue that is assigned as priority 0 (highest 
priority). Default is queue 0"
"TxQ_Priority_3: The transmit queue that is assigned as priority 3 (lowest 
priority). Default is queue 3."

> equally be named "reverse". 
True —  mqprio already uses the reverse mapping by default even without 
this private flag, which could feel inconsistent.

> Maybe "taprio-standard-txq-priority" would
> have been clearer regarding what the flag really does.
I’m okay with that suggestion, though I’m not sure it makes things clearer. 
What’s considered “standard” may depend on context — for IGC users who 
haven’t worked with other NICs, the existing default priority mapping might 
feel like the standard. I’m definitely in favor of improving readability 
and maintenance, but I’m still unsure what name best reflects that balance.


  parent reply	other threads:[~2025-06-18  6:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-11 18:03 [PATCH net-next 0/7][pull request] igc: harmonize queue priority and add preemptible queue support Tony Nguyen
2025-06-11 18:03 ` [PATCH net-next 1/7] igc: move TXDCTL and RXDCTL related macros Tony Nguyen
2025-06-11 18:03 ` [PATCH net-next 2/7] igc: add DCTL prefix to " Tony Nguyen
2025-06-11 18:03 ` [PATCH net-next 3/7] igc: refactor TXDCTL macros to use FIELD_PREP and GEN_MASK Tony Nguyen
2025-06-11 18:03 ` [PATCH net-next 4/7] igc: assign highest TX queue number as highest priority in mqprio Tony Nguyen
2025-06-11 18:03 ` [PATCH net-next 5/7] igc: add private flag to reverse TX queue priority in TSN mode Tony Nguyen
2025-06-17 10:06   ` Paolo Abeni
2025-06-17 12:17     ` Vladimir Oltean
2025-06-17 12:45       ` Paolo Abeni
2025-06-17 12:48         ` Vladimir Oltean
2025-06-18  6:35       ` Abdul Rahim, Faizal [this message]
2025-06-11 18:03 ` [PATCH net-next 6/7] igc: add preemptible queue support in taprio Tony Nguyen
2025-06-11 18:03 ` [PATCH net-next 7/7] igc: add preemptible queue support in mqprio Tony Nguyen
2025-06-13  1:42 ` [PATCH net-next 0/7][pull request] igc: harmonize queue priority and add preemptible queue support Jakub Kicinski
2025-06-17 13:10 ` patchwork-bot+netdevbpf

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=3e458cbe-a251-4f25-b264-6d1d441604c7@linux.intel.com \
    --to=faizal.abdul.rahim@linux.intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=chwee.lin.choong@intel.com \
    --cc=davem@davemloft.net \
    --cc=dima.ruinskiy@intel.com \
    --cc=edumazet@google.com \
    --cc=faizal.abdul.rahim@intel.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=morx.bar.gabay@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=vitaly.lifshits@intel.com \
    --cc=vladimir.oltean@nxp.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).