This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-J721E: Reconfiguring Qdisc will cause EST/TAS functionality to go wrong

Part Number: PROCESSOR-SDK-J721E

Preparation:

using Linux image with patch.

patch attachment:

/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_net_2D00_ethernet_2D00_ti_2D00_cpsw_2D00_qos_2D00_Add_2D00_taprio_2D00_config_2D00_support_2D00_f.patch

Commands:

ifconfig eth0 down
ethtool -L eth0 tx 3
ethtool --set-priv-flags eth0 p0-rx-ptype-rrobin off
ifconfig eth0 up
sleep 30

#sync system time to CPSW CPTS
phc2sys -s CLOCK_REALTIME -c eth0 -m -O 0 > /dev/null &
#start schedule at $base
tc qdisc replace dev eth0 parent root handle 100 taprio \
    num_tc 3 \
    map 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 \
    queues 1@0 1@1 1@2 \
    base-time 0 \
    sched-entry S 4 150000 \
    sched-entry S 2 150000 \
    sched-entry S 1 700000 \
    flags 2
tc qdisc add dev eth0 clsact
tc filter add dev eth0 egress protocol ip prio 1 u32 match ip dport 5001 0xffff action skbedit priority 3
tc filter add dev eth0 egress protocol ip prio 1 u32 match ip dport 5002 0xffff action skbedit priority 2
tc filter add dev eth0 egress protocol ip prio 1 u32 match ip dport 5003 0xffff action skbedit priority 1
tc qdisc show dev eth0
#delete qdisc
tc qdisc del dev eth0 parent root handle 100 taprio
#reconfigure qdisc
tc qdisc replace dev eth0 parent root handle 100 taprio \
    num_tc 3 \
    map 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 \
    queues 1@0 1@1 1@2 \
    base-time 0 \
    sched-entry S 4 150000 \
    sched-entry S 2 150000 \
    sched-entry S 1 700000 \
    flags 2
After reconfiguration, the TAS schedule start time is inaccurate. I mean, the start time is no equal to the time which is 0 + (N* cycle time).