4.2.13.4.5 Qci test cases
The following figure shows the Qci test setup.
Stream identify
# Set a stream to eth4 on TestCenter.
# Edit the stream, set destination MAC : 00:01:83:fe:12:01, Vlan ID : 1
tsntool> cbstreamidset --device eth5 --nullstreamid --nulldmac 0x000183fe1201 --nullvid 1 --
streamhandle 1
tsntool> qcisfiset --device eth4 --streamhandle 1 --index 1 --gateid 1 --priority 0 --flowmeterid 68
# Send one frame.
ethtool -S eth5
ethtool -S eth6
# Only eth5 can get the frame.
Stream gate control
echo "t0 1b 3 50000 200" > sgi.txt
tsntool> qcisgiset --device eth4 --enable --index 1 --initgate 1 --initipv 0 --gatelistfile sgi.txt --
basetime 0x0
#Explain:
# 'index' : gateid
# 'basetime' : The same as Qbv set
# Send one frame on TestCenter.
ethtool -S eth5
# Frame could pass, and green_prio_3 has increased.
echo "t0 0b 3 50000 200" > sgi.txt
tsntool> qcisgiset --device eth4 --enable --index 1 --initgate 1 --initipv 0 --gatelistfile sgi.txt --
basetime 0x0
# Send one frame on TestCenter.
ethtool -S eth5
# Frame could not pass.
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
121
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......