Created
November 20, 2016 22:32
-
-
Save gizmoguy/0a237a98435ae1a1dcaae25a2ee88c7e to your computer and use it in GitHub Desktop.
Loads igb_uio DPDK module and binds multiple interfaces to DPDK. Then starts an OVS compiled from source.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
insmod /usr/local/src/dpdk-16.07/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko | |
# Bind eth4, eth5, eth6, eth7 to DPDK instead of kernel | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb_uio 0000:04:00.0 | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb_uio 0000:04:00.1 | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb_uio 0000:04:00.2 | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb_uio 0000:04:00.3 | |
# Boot ovsdb-server | |
ovsdb-server \ | |
--remote=punix:/usr/local/var/run/openvswitch/db.sock \ | |
--remote=db:Open_vSwitch,Open_vSwitch,manager_options \ | |
--pidfile \ | |
--detach | |
# Boot ovs-vswitchd | |
ovs-vswitchd \ | |
unix:/usr/local/var/run/openvswitch/db.sock \ | |
--pidfile \ | |
--detach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment