Skip to content

Commit e9074d7

Browse files
Faizal Rahimanguy11
authored andcommitted
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]>
1 parent 55ececa commit e9074d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/intel/igc/igc_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6486,6 +6486,10 @@ static int igc_save_qbv_schedule(struct igc_adapter *adapter,
64866486
if (!validate_schedule(adapter, qopt))
64876487
return -EINVAL;
64886488

6489+
/* preemptible isn't supported yet */
6490+
if (qopt->mqprio.preemptible_tcs)
6491+
return -EOPNOTSUPP;
6492+
64896493
igc_ptp_read(adapter, &now);
64906494

64916495
if (igc_tsn_is_taprio_activated_by_user(adapter) &&

0 commit comments

Comments
 (0)