From: Kurt Kanzenbach <kurt@linutronix.de>
To: "Abdul Rahim, Faizal" <faizal.abdul.rahim@linux.intel.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org
Subject: Re: [Intel-wired-lan] [PATCH iwl-next] igc: Change Tx mode for MQPRIO offloading
Date: Fri, 21 Feb 2025 10:01:33 +0100 [thread overview]
Message-ID: <87wmdj8ydu.fsf@kurt.kurt.home> (raw)
In-Reply-To: <6ff37238-ff0e-43c9-a88d-1258fd4ce7ef@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1839 bytes --]
On Fri Feb 21 2025, Abdul Rahim, Faizal wrote:
> On 17/2/2025 7:45 pm, Kurt Kanzenbach wrote:
>> The current MQPRIO offload implementation uses the legacy TSN Tx mode. In
>> this mode the hardware uses four packet buffers and considers queue
>> priorities.
>>
>> In order to harmonize the TAPRIO implementation with MQPRIO switch to the
> Missed "," ?
> In order to harmonize the TAPRIO implementation with MQPRIO, switch to the
Ok.
>
>> diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c
>> index 1e44374ca1ffbb86e9893266c590f318984ef574..6e4582de9602db2c6667f1736cc2acaa4d4b5201 100644
>> --- a/drivers/net/ethernet/intel/igc/igc_tsn.c
>> +++ b/drivers/net/ethernet/intel/igc/igc_tsn.c
>> @@ -47,7 +47,7 @@ static unsigned int igc_tsn_new_flags(struct igc_adapter *adapter)
>> new_flags |= IGC_FLAG_TSN_QAV_ENABLED;
>>
>> if (adapter->strict_priority_enable)
>> - new_flags |= IGC_FLAG_TSN_LEGACY_ENABLED;
>> + new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>>
>> return new_flags;
>> }
>
> IGC_FLAG_TSN_QBV_ENABLED is set multiple times in different lines:
>
> if (adapter->taprio_offload_enable)
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>
> if (is_any_launchtime(adapter))
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>
> if (is_cbs_enabled(adapter))
> new_flags |= IGC_FLAG_TSN_QAV_ENABLED;
>
> if (adapter->strict_priority_enable)
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>
> return new_flags;
> }
>
> We can combine the conditions to simplify:
> if (adapter->taprio_offload_enable ||
> is_any_launchtime(adapter) ||
> adapter->strict_priority_enable)
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
Sure.
Should I send a v2 or do you want to carry this patch in your next fpe
series?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Kurt Kanzenbach <kurt@linutronix.de>
To: "Abdul Rahim, Faizal" <faizal.abdul.rahim@linux.intel.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org
Subject: Re: [PATCH iwl-next] igc: Change Tx mode for MQPRIO offloading
Date: Fri, 21 Feb 2025 10:01:33 +0100 [thread overview]
Message-ID: <87wmdj8ydu.fsf@kurt.kurt.home> (raw)
In-Reply-To: <6ff37238-ff0e-43c9-a88d-1258fd4ce7ef@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1839 bytes --]
On Fri Feb 21 2025, Abdul Rahim, Faizal wrote:
> On 17/2/2025 7:45 pm, Kurt Kanzenbach wrote:
>> The current MQPRIO offload implementation uses the legacy TSN Tx mode. In
>> this mode the hardware uses four packet buffers and considers queue
>> priorities.
>>
>> In order to harmonize the TAPRIO implementation with MQPRIO switch to the
> Missed "," ?
> In order to harmonize the TAPRIO implementation with MQPRIO, switch to the
Ok.
>
>> diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c
>> index 1e44374ca1ffbb86e9893266c590f318984ef574..6e4582de9602db2c6667f1736cc2acaa4d4b5201 100644
>> --- a/drivers/net/ethernet/intel/igc/igc_tsn.c
>> +++ b/drivers/net/ethernet/intel/igc/igc_tsn.c
>> @@ -47,7 +47,7 @@ static unsigned int igc_tsn_new_flags(struct igc_adapter *adapter)
>> new_flags |= IGC_FLAG_TSN_QAV_ENABLED;
>>
>> if (adapter->strict_priority_enable)
>> - new_flags |= IGC_FLAG_TSN_LEGACY_ENABLED;
>> + new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>>
>> return new_flags;
>> }
>
> IGC_FLAG_TSN_QBV_ENABLED is set multiple times in different lines:
>
> if (adapter->taprio_offload_enable)
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>
> if (is_any_launchtime(adapter))
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>
> if (is_cbs_enabled(adapter))
> new_flags |= IGC_FLAG_TSN_QAV_ENABLED;
>
> if (adapter->strict_priority_enable)
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
>
> return new_flags;
> }
>
> We can combine the conditions to simplify:
> if (adapter->taprio_offload_enable ||
> is_any_launchtime(adapter) ||
> adapter->strict_priority_enable)
> new_flags |= IGC_FLAG_TSN_QBV_ENABLED;
Sure.
Should I send a v2 or do you want to carry this patch in your next fpe
series?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
next prev parent reply other threads:[~2025-02-21 9:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 11:45 [Intel-wired-lan] [PATCH iwl-next] igc: Change Tx mode for MQPRIO offloading Kurt Kanzenbach
2025-02-17 11:45 ` Kurt Kanzenbach
2025-02-21 7:23 ` [Intel-wired-lan] " Abdul Rahim, Faizal
2025-02-21 7:23 ` Abdul Rahim, Faizal
2025-02-21 9:01 ` Kurt Kanzenbach [this message]
2025-02-21 9:01 ` Kurt Kanzenbach
2025-02-21 9:39 ` [Intel-wired-lan] " Abdul Rahim, Faizal
2025-02-21 9:39 ` Abdul Rahim, Faizal
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=87wmdj8ydu.fsf@kurt.kurt.home \
--to=kurt@linutronix.de \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=bigeasy@linutronix.de \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=faizal.abdul.rahim@linux.intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.