Chapter XVIII. Classification and Filtering
3.5.
Hit Counters
For LE-TCAM filters, hit counters will work simply by adding hitcnts 1 parameter to the filter rule.
However, for Hash/DDR filters, you will have to make use of tracing feature and RSS queues.
Here's a step-by-step guide to enable hit counters for Hash/DDR filter rules:
i.
Enable tracing on T5 adapter.
[root@host~]# cxgbtool ethX reg 0x09800=0x13
ii. Setup a trace filter
[root@host~]# echo tx1 snaplen=40 > /sys/kernel/debug/cxgb4/<bus_id>/trace0
Use "snaplen=60" in case of IPV6.
Note
iii. Configure RSS Queue to send trace packets. Determine the RspQ ID of the queues by
looking at Trace QType in /sys/kernel/debug/cxgb4/<bus-id>/sge_qinfo file
[root@host~]# cxgbtool ethX reg 0x0a00c=<Trace Queue0-RspQ ID>
The above step will trace all the packets transmitting from port1(tx1) to trace filter 0.
Multi-tracing
To enable hit counters for multiple chelsio ports in Tx/Rx direction enable Multi-tracing. Using
this we can configure 4 different RSS Queues separately corresponding to 4 trace-filters.
i.
Enable Tracing as well as MultiRSSFilter
[root@host~]# cxgbtool ethX reg 0x09800=0x33
ii. Setup a trace filter
[root@host~]# echo tx0 snaplen=40 > /sys/kernel/debug/cxgb4/<bus_id>/trace0
Chelsio T5/T4 Unified Wire for Linux
Page 246
Need help?
Do you have a question about the Chelsio T5 and is the answer not in the manual?
Questions and answers