Chapter XVIII. Classification and Filtering
iii.
Now, create filter rules using cxgbtool:
[root@host]# cxgbtool ethx filter <index> action [pass/drop/switch]
Where,
ethX
: Chelsio interface
index : positive integer set as filter id
action : Ingress packet disposition
pass
: Ingress packets will be passed through set ingress queues
switch : Ingress packets will be routed to an output port with optional header rewrite.
drop
: Ingress packets will be dropped.
In case of multiple filter rules, the rule with the lowest filter index takes higher
Note
priority.
2.2.1. Examples
Drop action
[root@host]# cxgbtool ethX filter 0 action drop fip 192.168.1.5
The above filter rule will drop all ingress packets from IP 192.168.1.5
Pass action
[root@host]# cxgbtool ethX filter 0 action pass lport 10001 fport 355
queue 2
The above filter rule will pass all ingress packets that match local port 10001 and remote port
355 to ingress queue 2 for load balancing.
Switch action
[root@host]# cxgbtool ethX filter 0 action switch iport 0 eport 1 vlan 3
The above filter rule will route all ingress packets that match VLAN id 3 from port 0 of Chelsio
adapter to port 1.Remaining packets will be sent to the host.
Chelsio T5/T4 Unified Wire For Linux
Page 238
Need help?
Do you have a question about the Chelsio T5 and is the answer not in the manual?
Questions and answers