Chapter XXI. OVS Kernel Datapath Offload
•
Strip VLAN tag and switch traffic:
[root@host~]# ovs-ofctl add-flow br0
in_port=1,dl_type=0x800,action=strip_vlan,output:2
•
Insert VLAN tag 100 and switch traffic:
[root@host~]# ovs-ofctl -O OpenFlow11 add-flow br0
in_port=1,dl_type=0x800,action=push_vlan:0x8100,set_field:100-
\>vlan_vid,output:2
•
Modify VLAN tag 30 to 50 and switch traffic:
[root@host~]# ovs-ofctl -O OpenFlow11 add-flow br0
in_port=1,dl_type=0x800,vlan_vid=30,action=mod_vlan_vid=50,output:2
If vlan_vid is not specieifed, the mod_vlan_vid tag will be added with a priority of 0.
•
Modify VLAN priority and switch traffic:
[root@host~]# ovs-ofctl -O OpenFlow11 add-flow br0
in_port=1,dl_type=0x800,vlan_pcp=4,action=mod_vlan_pcp=3,output:2
3.2.1.3.
VXLAN Flows
The following steps describe the method to configure VXLAN using OVS with single port on
Server and Client machines.
•
Only wild-card flows are currently supported with VXLAN matches.
Note
•
VxLAN VNI rewrite is not supported.
Server
i.
Update the firmware configuration file, t6-config.txt, located at /lib/firmware/cxgb4/ :
filterMode = fragmentation, mpshittype, ethertype, vnic_id, port
filterMask = ethertype, vnic_id, port
vnicMode = encapsulation
ii. Load NIC (cxgb4) driver with hash-filter support:
[root@host~]# modprobe cxgb4 use_ddr_filters=1
Chelsio Unified Wire for Linux
306
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers