Chelsio Communications DPDK Installation And User Manual page 30

Driver for linux
Table of Contents

Advertisement

Chapter 7. Classification and Filtering
7.2.5. Creating Filter Rules
To create filter rules, use the add operation as given below. Please note that all the parameters
mentioned are mandatory:
cxgbe> filter <port_id> add <ip_version> mode <filter_mode> <priority>
ingress-port <iport> <iport_mask> fcoe <fcoe_bit> <fcoe_bit_mask> mac-match-
type <match_type> mac-index <macidx> <macidx_mask> ether <ether_type>
<ether_type_mask> vlan <inner_vlan> <inner_vlan_mask> <outer_vlan>
<outer_vlan_mask> ip <frag_bit> <frag_bit_mask> <tos> <tos_mask> <proto>
<proto_mask> <src_ip_address> <src_ip_mask> <dst_ip_address> <dst_ip_mask>
<src_port> <src_port_mask> <dst_port> <dst_port_mask> <action> queue
<queue_id> <egress_port_redirect> <egress_port> <mac_addr_rewrite> <src_mac>
<dst_mac> <vlan_operation> <new_vlan> <nat_operation> <nat_src_ip>
<nat_dst_ip> <nat_src_port> <nat_dst_port> fd_id <fd_id_value>
Packets that don't meet the filter accept criteria will be forwarded to the DPDK
Note
stack.
Examples
fcoe filter mode
The above filter rule will switch FCoE packets from port 0 to port 1.
port filter mode
The above filter rule will switch packets received on port 0 to port 1.
vlan filter mode
The above filter rule will switch packets only if iVLAN = 65.
tos filter mode
The above filter rule will switch packets only if TOS = 0x30.
Chelsio DPDK Driver for Linux
30

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DPDK and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents