Skip to content

Commit

Permalink
Add rc.local config for binding dpdk port after reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
sufuf3 committed Aug 1, 2018
1 parent f35655f commit e88e4cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions developers/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ sudo ln -sf ${DPDK_DIR}/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko /lib/modules/
sudo depmod -a
echo "uio" | sudo tee -a /etc/modules
echo "igb_uio" | sudo tee -a /etc/modules
# Setting rc.local config for binding dpdk port after reboot
sudo sed -i '/exit 0/d' /etc/rc.local
echo "ifconfig ${NET_IF_NAME} down" | sudo tee -a /etc/rc.local
echo "${DPDK_DIR}/usertools/dpdk-devbind.py --bind=igb_uio ${NET_IF_NAME}" | sudo tee -a /etc/rc.local
echo "exit 0" | sudo tee -a /etc/rc.local
# Bind secondary network adapter
# Note that this NIC setup does not persist across reboots
Expand Down

0 comments on commit e88e4cc

Please sign in to comment.