
• Set Stream Gate entry 2, gate closes permanently.
tsntool> qcisgiset --device eno0 --index 2 --initgate 0
• Send a frame from the opposite device port.
tsntool> qcisfiget --device eno0 --index 2
#The result should look like below:
match pass gate_drop sdu_pass sdu_drop red
1 0 1 1 0 0
8.1.3.3.2 Testing null stream identify entry
Null stream identify in stream identify module means try to filter as destination mac address and vlan id.
Following steps shows stream identify entry index 1 set with filtering destination mac address is 10:00:80:00:00:00, vlan id
ignored(with or witout vland id). Then stream filter set on the entry index 1 with stream gate index entry id 1.
1. Set main stream by close gate.
2. Set Stream identify Null stream identify entry 1.
tsntool> cbstreamidset --device eno0 --index 1 --nullstreamid --nulldmac
0x000000800010 --nulltagged 3 --nullvid 10 --streamhandle 100
3. Get stream identify entry index 1.
tsntool> cbstreamidget --device eno0 --index 1
4. Set Stream filer entry 1 with stream gate entry id 1.
tsntool> qcisfiset --device eno0 --streamhandle 100 --index 1 --gateid 1
5. Set Stream Gate entry 1, keep gate state close (all frames dropped. return directly if ask you for editing gate list).
tsntool> qcisgiset --device eno0 --index 1 --initgate 0
6. Send one frame from the opposite device port should pass to the close gate entry id 1.
tsntool> qcisfiget --device eno0 --index 1
7. The result should look like the output below:
match pass gate_drop sdu_pass sdu_drop red
1 0 1 1 0 0
8.1.3.3.3 Testing source stream identify entry
Source stream identify means stream identify the frames by the source mac address and vlan id.
Use the following steps for this test:
1. Keep Stream Filter entry 1 and Stream gate entry 1.
2. Add stream2 in opposite device port:
SMAC is 66:55:44:33:22:11 DMAC:20:00:80:00:00:00
(Not with destination mac
address 10:00:80:00:00:00 which stream identify entry index 1 is filtering that dmac address)
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
111 / 199