TAPRIO(8) Linux TAPRIO(8) (NAME) tc-taprio - (Time Aware Priority Shaper) (SYNOPSIS) tc qdisc ... dev dev parent classid [ handle major: ] taprio num_tc tcs map P0 P1 P2 ... queues count1@offset1 count2@offset2 ... base-time base-time clockid clockid sched-entry sched-entry sched-entry sched-entry [ max-sdu ] [ fp ] (DESCRIPTION) TAPRIO 8.6.9 IEEE 802.1Q-2018 (gate states) ( ) . mqprio(8) map queues . ( ). (PARAMETERS) num_tc . . map . . mqprio(8) . queues . count@offset. . base-time clockid . 'base-time' : base-time + (N * cycle-time) N <<>> (now) <> clockid qdisc . (flags 0x2 full-offload) clockid dev/ptpN/ ( N ethtool -T eth0 | grep 'PTP Hardware Clock' ) CLOCK_TAI . sched-entry sched-entry . : sched-entry : S SetGateStates H Set-And-Hold-MAC R Set-And-Release-MAC IEEE 802.1Q-2018 ( 8-7) . <<>> ( ) <<>> . . flags taprio . 0x1 txtime-assist . taprio . etf(8) . . 0x2 (full-offload) . taprio (NIC) . full-offload clockid . txtime-assist full-offload flags 0x3 . txtime-delay txtime . qdisc . qdisc etf(8) . max-sdu ( ) queueMaxSDU IEEE 802.1Q-2018 . (payload) . . MTU . fp (express) (preemptible). tc-mqprio(8) . (EXAMPLES) ("num_tc 3") TC 0 TC 1 TC 2 . "map" : TC 0 TC 1 TC 2 . 1528743495910289987 CLOCK_TAI . (300us) . # tc qdisc replace dev eth0 parent root handle 100 stab overhead 24 taprio \ num_tc 3 \ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \ queues 1@0 1@1 2@2 \ base-time 1528743495910289987 \ sched-entry S 01 300000 \ sched-entry S 02 300000 \ sched-entry S 04 300000 \ clockid CLOCK_TAI txtime taprio . qdisc ETF etf(8) . # tc qdisc replace dev eth0 parent root handle 100 stab overhead 24 taprio \ num_tc 3 \ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \ queues 1@0 1@0 1@0 \ base-time 1528743495910289987 \ sched-entry S 01 300000 \ sched-entry S 02 300000 \ sched-entry S 04 400000 \ flags 0x1 \ txtime-delay 200000 \ clockid CLOCK_TAI # tc qdisc replace dev $IFACE parent 100:1 etf skip_skb_check \ offload delta 200000 clockid CLOCK_TAI (full offload) . base-time cycle-time sched-entry ( 20 us + 20 us + 60 us = 100 us). base-time PTP PTP . MTU (octet) . max SDU L2 L1 ( tc-stab(8)) . # tc qdisc add dev eth0 parent root stab overhead 24 taprio \ num_tc 8 \ map 0 1 2 3 4 5 6 7 \ queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 \ max-sdu 0 0 0 0 0 200 0 0 \ base-time 200 \ sched-entry S 80 20000 \ sched-entry S a0 20000 \ sched-entry S 5f 60000 \ flags 0x2 (SEE ALSO) tc-stab(8) (AUTHORS) Vinicius Costa Gomes iproute2 25 Sept 2018 TAPRIO(8)