•
device
: can be any one of switch ports.
•
flowmeterid
: PSFP Policer id, ranges from 63 to 383.
3. Send one frame, then check the frames.
ethtool -S swp1
ethtool -S swp2
Only
swp1
can get the frame.
4. Use the following command to check and debug the stream identification status.
qcisfiget --device swp0 --index 1
The parameter
streamhandle
is the same as
index
in stream filter set, we use
streamhandle
in
cbstreamidset
to set a stream filter entry, and use
index
to disable it. Also, we use
index
in
cbstreamidget
to get this stream filter entry.
NOTE
8.1.4.5.2 Stream gate control
1. Use the following commands for stream gate control:
echo "t0 1b 3 50000 200" > sgi.txt
tsntool> qcisgiset --device swp0 --enable --index 1 --initgate 1 --initipv 0 --gatelistfile
sgi.txt --basetime 0x0
Explanation:
• 'device': can be any one of switch ports.
• 'index': gateid
• 'basetime' : It is the same as Qbv set.
2. Send one frame on TestCenter.
ethtool -S swp1
Note that the frame could pass, and green_prio_3 has increased.
3. Now run the following commands:
echo "t0 0b 3 50000 200" > sgi.txtx
tsntool> qcisgiset --device swp0 --enable --index 1 --initgate 1 --initipv 0 --gatelistfile
sgi.txt --basetime 0x0
4. Next, send one frame on TestCenter.
ethtool -S swp1
Note that the frame could not pass.
8.1.4.5.3 SFI maxSDU test
Use the following command to run this test:
tsntool> qcisfiset --device swp0 --index 1 --gateid 1 --priority 0 --flowmeterid 68 --maxsdu 200
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
121 / 199