diff options
| author | Faizal Rahim <[email protected]> | 2025-03-18 03:07:40 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-04-18 16:17:14 +0000 |
| commit | e9074d7f376876f819090b4fca99a370ab7b830b (patch) | |
| tree | 8a13fc82330ff3cccbfaa48ee193a31461720501 /drivers/net/ethernet/intel/igc | |
| parent | igc: add support to set tx-min-frag-size (diff) | |
| download | kernel-e9074d7f376876f819090b4fca99a370ab7b830b.tar.gz kernel-e9074d7f376876f819090b4fca99a370ab7b830b.zip | |
igc: block setting preemptible traffic class in taprio
Since preemptible tc implementation is not ready yet, block it from being
set in taprio. The existing code already blocks it in mqprio.
Reviewed-by: Vladimir Oltean <[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')
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index d160da49b0d2..5b06765a35e9 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -6486,6 +6486,10 @@ static int igc_save_qbv_schedule(struct igc_adapter *adapter, if (!validate_schedule(adapter, qopt)) return -EINVAL; + /* preemptible isn't supported yet */ + if (qopt->mqprio.preemptible_tcs) + return -EOPNOTSUPP; + igc_ptp_read(adapter, &now); if (igc_tsn_is_taprio_activated_by_user(adapter) && |
