diff options
| author | Faizal Rahim <[email protected]> | 2025-05-19 07:19:08 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-06-11 17:06:22 +0000 |
| commit | 650a2fe79538bd61d294b7041ed700316f025a32 (patch) | |
| tree | ac7a5cf81acb3fc7381e4998db0824db8668b82d /drivers/net/ethernet/intel/igc/igc_ethtool.c | |
| parent | igc: refactor TXDCTL macros to use FIELD_PREP and GEN_MASK (diff) | |
| download | kernel-650a2fe79538bd61d294b7041ed700316f025a32.tar.gz kernel-650a2fe79538bd61d294b7041ed700316f025a32.zip | |
igc: assign highest TX queue number as highest priority in mqprio
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]>
Tested-by: Mor Bar-Gabay <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_ethtool.c')
0 files changed, 0 insertions, 0 deletions
