
1. Identify a stream.
tsntool> cbstreamidset --device swp1 --nullstreamid --nulldmac 0x000183fe1201 --nullvid 1 --
streamhandle 1
tsntool> qcisfiset --device swp0 --index 1 --gateid 1 --flowmeterid 68
2. Set to Qos class 3 by using 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
8.1.4.9 ACL test
The access-control-list is using “tc flower” command to set the filter and actions. Following keys and actions are supported on
LS1028a:
keys:
vlan_id
vlan_prio
dst_mac/src_mac for non IP frames
dst_ip/src_ip
dst_port/src_port
actions:
trap
drop
police
vlan modify
vlan push(Egress)
Using following commands to set, get and delete ACL rules:
tc qdisc add dev swp0 ingress
tc filter add dev swp0 parent ffff: protocol [ip/802.1Q] flower skip_sw [keys] action [actions]
tc filter list dev swp0 parent ffff:
tc filter del dev swp0 parent ffff: pref [pref_id]
tc qdisc add dev swp1 clsact
tc filter add dev swp1 egress protocol 802.1Q flower skip_sw [keys] action vlan push id [value] priority
[value]
tc filter show dev swp1 egress
tc filter del dev swp1 egress pref [pref_id]
There are four ACL use cases for testing:
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
128 / 199