Chapter XX. Classification and Filtering
The
network
driver
[root@host~]# rmmod cxgb4
[root@host~]# modprobe cxgb4
2.2.
Creating Filter Rules
Network driver (cxgb4) must be installed and loaded before setting the filter rule.
If you haven't done already, run the Unified Wire Installer with the appropriate configuration
i.
tuning option to install the network driver.
ii. Load the network driver and bring up the Chelsio interface:
[root@host~]# modprobe cxgb4
[root@host~]# ifconfig ethX up
iii. Now, create filter rules using cxgbtool:
[root@host~]#cxgbtool ethx filter <index> action [pass/drop/switch] <prio 1>
<hitcnts 1>
Where,
ethX
: Chelsio interface
index
: positive integer set as filter id. 0-495 for T5 adapters; 0-559 for T6 adapters.
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.
prio 1
: Optional for T5.
Mandatory for T6 indices 0-63; Should not be added for T6 indices 64-559
hitcnts 1
: To enable hit counts in cxgbtool filter show output.
In case of multiple filter rules, the rule with the lowest filter index takes higher
Note
priority.
Examples
•
drop action
[root@host~]# cxgbtool ethX filter 100 action drop fip 192.168.1.5
Chelsio Unified Wire for Linux
needs
to
be
reloaded
next
using
the
following
command:
278
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers