Chapter XXI. OVS Kernel Datapath Offload
iii. Bring up Chelsio interfaces in promiscous mode:
[root@host~]# ifconfig ethX <ip_address> promisc up
[root@host~]# ifconfig ethY <ip_address> promisc up
iv. Load Open vSwitch module:
[root@host~]# modprobe openvswitch
v. Configure OVS:
[root@host~]# ovs-appctl exit
[root@host~]# pkill -9 ovs
[root@host~]# rm -rf /usr/local/etc/ovs-vswitchd.conf
[root@host~]# rm -rf /usr/local/var/run/openvswitch/db.sock
[root@host~]# rm -rf /usr/local/etc/openvswitch/conf.db
[root@host~]# touch /usr/local/etc/ovs-vswitchd.conf
[root@host~]# ovsdb-tool create /usr/local/etc/openvswitch/conf.db
<uwire_package>/src/openvswitch-x.x.x/vswitchd/vswitch.ovsschema
[root@host~]# ovsdb-server /usr/local/etc/openvswitch/conf.db --
remote=punix:/usr/local/var/run/openvswitch/db.sock --
remote=db:Open_vSwitch,Open_vSwitch,manager_options --bootstrap-ca-
cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach --log-file
[root@host~]# ovs-vsctl --no-wait init
[root@host~]# export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
[root@host~]# ovs-vswitchd --pidfile –detach
[root@host~]# ovs-vsctl add-br br0
[root@host~]# ifconfig br0 <server_ip>/24 up
[root@host~]# ovs-vsctl add-port br0 <chelsio_port0_name> -- set interface
<chelsio_port0_name> type=vxlan options:remote_ip=<peer_chelsio_ip>
options:local_ip=<local_chelsio_ip> options:key=flow
[root@host~]# ovs-vsctl add-port br0 <chelsio_port1_name>
vi. Disable GRO on the chelsio adapter, bridge and VXLAN interfaces:
[root@host~]# ethtool -K <chelsio_port0_name> gro off
[root@host~]# ethtool -K <chelsio_port1_name> gro off
[root@host~]# ethtool -K br0 gro off
[root@host~]# ethtool -K vxlan_sys_* gro off
vii. Set a rule to match packets with VNI=42 and drop:
[root@host~]# ovs-ofctl add-flow br0 in_port=2,tun_id=0x2a,action=drop
Chelsio Unified Wire for Linux
307
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers