
Chapter XVIII. Classification and Filtering
Chelsio T5/T4 Unified Wire For Linux Page 249
To list the both LE-TCAM and Hash/DDR filters set, run the following command:
[root@host]# cxgbtool ethX filter show
3.3. Removing Filter Rules
To remove a filter, run the following command with cap maskless parameter and corresponding
filter rule index:
[root@host]# cxgbtool ethX filter index <delete|clear> cap maskless
3.4. Swap MAC feature
Chelsio T5’s Swap MAC feature swaps packet source MAC and destination MAC addresses.
This is applicable only for switch filter rules. Here’s an example:
[root@host]# cxgbtool eth2 filter 1 action switch lip 102.2.2.1 fip
102.2.2.2 lport 5001 fport 14000 hitcnts 1 iport 1 eport 0 swapmac 1 proto
17 cap maskless
The above example will swap source and destination MAC addresses of UDP packets
(matching above 4 tuple) received on adapter port 1 and then switch them to port 0.
Filter rule index can be determined by referring the “hash_filters” file located in
/proc/drivers/cxgb4/<bus-id>/.
This feature is currently supported only with Hash/DDR filters.
For more information on additional parameters, refer cxgbtool manual by running
the man cxgbtool command.
Comentários a estes Manuais