@@ -105,7 +105,7 @@ dpip link set dpdk0 tc-ingress on # enable tc-ingress for dpdk0
105105```
106106You can verify if TC for dpdk0 is enabled by checking if "tc-egress" or "tc-ingress" flag exists in the output of the command ` dpip link show dpdk0 ` .
107107
108- > It's safe to enable or disable TC of a device anytime you like, even if when TC is processing packets.
108+ > It's safe to enable or disable TC of a device whenever you like, even if when TC is processing packets.
109109
110110** 2. Add a root Qsch object.**
111111
@@ -140,25 +140,33 @@ qsch tbf 1: dev dpdk0 parent root flags 0x0 cls 0 rate 10.00Mbps burst 10000B li
140140
141141# Check Cls on Qsch root
142142[root@dpvs-test]# dpip cls show dev dpdk0 qsch root
143- cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 ICMP,iif- dpdk0 target 2 :
143+ cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif= dpdk0 target 1 :
144144
145145# Check Cls on Qsch ingress
146146[root@dpvs-test]# dpip cls show dev dpdk0 qsch ingress
147- cls match 8003 : dev dpdk0 qsch ingress pkttype 0x0800 prio 0 ICMP,iif- dpdk0 target 2:
147+ cls match 8002 : dev dpdk0 qsch ingress pkttype 0x0800 prio 0 ICMP,iif= dpdk0 target 2:
148148
149- # Get statistics of Qsch 2:0
149+ # Get statistics of Qsch
150+ [root@dpvs-test]# dpip qsch -s show dev dpdk0 handle 1:
151+ qsch tbf 1: dev dpdk0 parent root flags 0x0 cls 0 rate 10.00Mbps burst 10000B limit 2500B
152+ Sent 4050639 bytes 46334 pkts (dropped 0, overlimits 0 requeues 0)
153+ Backlog 0 bytes 0 pkts
150154[root@dpvs-test]# dpip qsch -s show dev dpdk0 handle 2:
151155qsch bfifo 2: dev dpdk0 parent ingress flags 0x1 cls 0 limit 100000
152- Sent 17308172 bytes 176614 pkts (dropped 0, overlimits 0 requeues 0)
156+ Sent 980 bytes 10 pkts (dropped 0, overlimits 0 requeues 0)
153157 Backlog 0 bytes 0 pkts
154158
155159# Get per-lcore config of Cls 8001:
156160[root@dpvs-test]# dpip cls -v show dev dpdk0 qsch root handle 8001:
157- [00] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 ICMP,iif-dpdk0 target 2:
158- [01] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 ICMP,iif-dpdk0 target 2:
159- [02] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 ICMP,iif-dpdk0 target 2:
160- [03] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 ICMP,iif-dpdk0 target 2:
161- [04] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 ICMP,iif-dpdk0 target 2:
161+ [00] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
162+ [01] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
163+ [02] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
164+ [04] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
165+ [03] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
166+ [05] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
167+ [06] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
168+ [07] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
169+ [08] cls match 8001: dev dpdk0 qsch root pkttype 0x0800 prio 0 TCP,oif=dpdk0 target 1:
162170```
163171
164172<a id =' examples ' />
0 commit comments