On 19/05/2025 10:19, Abdul Rahim, Faizal wrote:
From: Faizal Rahim <[email protected]>

Previously, TX arbitration prioritized queues based on the TC they were
mapped to. A queue mapped to TC 3 had higher priority than one mapped to
TC 0.

To improve code reuse for upcoming patches and align with typical NIC
behavior, this patch updates the logic to prioritize higher queue numbers
when mqprio is used. As a result, queue 0 becomes the lowest priority and
queue 3 becomes the highest.

This patch also introduces igc_tsn_is_tc_to_queue_priority_ordered() to
preserve the original TC-based priority rule and reject configurations
where a higher TC maps to a lower queue offset.

Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Faizal Rahim <[email protected]>
---
  drivers/net/ethernet/intel/igc/igc_main.c | 19 ++++++++++++
  drivers/net/ethernet/intel/igc/igc_tsn.c  | 35 ++++++++++++++---------
  2 files changed, 41 insertions(+), 13 deletions(-)

Tested-by: Mor Bar-Gabay <[email protected]>

Reply via email to