
# The Get Frame sequence is: (PCP=1), (PCP=2), (PCP=2), (PCP=1), (PCP=2), (PCP=2),…
Using CBS Qdisc Setup Qav
LS1028a support the CBS qdisc to setup Credit-based Shaper. Below commands set CBS with 20Mbit/s for queue 1 and
40Mbit/s for queue 2.
1. Set the cbs of two traffic classes:
tc qdisc add dev swp2 root handle 1: mqprio 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 hw 0
tc qdisc replace dev swp2 parent 1:2 cbs locredit -1470 hicredit 30 \
sendslope -980000 idleslope 20000 offload 1
tc qdisc replace dev swp2 parent 1:3 cbs locredit -1440 hicredit 60 \
sendslope -960000 idleslope 40000 offload 1
2. Send one stream with PCP=1 from TestCenter, we can get the stream bandwith is 20Mbps from swp2.
3. Send two streams from Test center, then check the frames count.
ethtool -S swp2
Note that the frame count of queue1 is half of queue2.
4. delete the cbs rules.
tc qdisc del dev swp2 parent 1:2 cbs
tc qdisc del dev swp2 parent 1:3 cbs
8.1.4.7 Seamless redundancy test case
The following figure describes the test setup for the seamless redundancy test case.
Figure 37. Seamless redundancy test
8.1.4.7.1 Sequence Generator test
Use the following set of commands for the 'Sequence Generator' test.
1. Configure switch ports to be forward mode.
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
124 / 199