[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f98a1c79-ed3b-4f0a-b0db-071a16f69666@intel.com>
Date: Thu, 29 May 2025 10:24:56 +0300
From: Mor Bar-Gabay <morx.bar.gabay@...el.com>
To: "Abdul Rahim, Faizal" <faizal.abdul.rahim@...el.com>, Tony Nguyen
<anthony.l.nguyen@...el.com>, Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Andrew Lunn <andrew+netdev@...n.ch>, "David S . Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Vladimir Oltean
<vladimir.oltean@....com>
CC: <intel-wired-lan@...ts.osuosl.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Simon Horman <horms@...nel.org>, Faizal Rahim
<faizal.abdul.rahim@...ux.intel.com>, Aleksandr Loktionov
<aleksandr.loktionov@...el.com>, Chwee-Lin Choong
<chwee.lin.choong@...el.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v3 6/7] igc: add preemptible
queue support in taprio
On 19/05/2025 10:19, Abdul Rahim, Faizal wrote:
> From: Faizal Rahim <faizal.abdul.rahim@...ux.intel.com>
>
> Changes:
> 1. Introduce tx_enabled flag to control preemptible queue. tx_enabled
> is set via mmsv module based on multiple factors, including link
> up/down status, to determine if FPE is active or inactive.
> 2. Add priority field to TXDCTL for express queue to improve data
> fetch performance.
> 3. Block preemptible queue setup in taprio unless reverse-tsn-txq-prio
> private flag is set. Encourages adoption of standard queue priority
> scheme for new features.
> 4. Hardware-padded frames from preemptible queues result in incorrect
> mCRC values, as padding bytes are excluded from the computation. Pad
> frames to at least 60 bytes using skb_padto() before transmission to
> ensure the hardware includes padding in the mCRC calculation.
>
> Tested preemption with taprio by:
> 1. Enable FPE:
> ethtool --set-mm enp1s0 pmac-enabled on tx-enabled on verify-enabled on
> 2. Enable private flag to reverse TX queue priority:
> ethtool --set-priv-flags enp1s0 reverse-txq-prio on
> 3. Enable preemptible queue in taprio:
> taprio num_tc 4 map 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 \
> queues 1@0 1@1 1@2 1@3 \
> fp P P P E
>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@...el.com>
> Co-developed-by: Chwee-Lin Choong <chwee.lin.choong@...el.com>
> Signed-off-by: Chwee-Lin Choong <chwee.lin.choong@...el.com>
> Signed-off-by: Faizal Rahim <faizal.abdul.rahim@...ux.intel.com>
> Reviewed-by: Simon Horman <horms@...nel.org>
> ---
> drivers/net/ethernet/intel/igc/igc.h | 6 ++
> drivers/net/ethernet/intel/igc/igc_defines.h | 1 +
> drivers/net/ethernet/intel/igc/igc_main.c | 21 +++++-
> drivers/net/ethernet/intel/igc/igc_tsn.c | 71 ++++++++++++++++++++
> drivers/net/ethernet/intel/igc/igc_tsn.h | 4 ++
> 5 files changed, 100 insertions(+), 3 deletions(-)
>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@...el.com>
Powered by blists - more mailing lists