You may want to consider reading the presentation and using the scripts from this: https://github.com/shivarammysore/faucetsdn-intel/tree/master/src/ubuntu/zesty/ovs_281 to setup and configure DPDK on your machine.
BTW, you don't have to compile DPDK, etc On Fri, Dec 1, 2017 at 1:23 AM, Kumar Sanjay10 <[email protected]> wrote: > > Hi, > > I am trying to work on DPDK with OVS. But, getting an error during the > "setup DPDK devices using VFIO". List of commands executed as follows: > > *DPDK Building: * #export DPDK_DIR=/home/tcs/dpdk-17.11 > > > #export DPDK_TARGET=x86_64-native-linuxapp-gcc > > #export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET > > #make install T=$DPDK_TARGET DESTDIR=install > > > *OVS Building: * #cd openvswitch-2.8.0/ #./boot.sh > > #./configure –with-dpdk=$DPDK_BUILD #make && make install > > > #echo 'vm.nr_hugepages=2048' > /etc/sysctl.d/hugepages.conf > > #sysctl -w vm.nr_hugepages=10 #grep HugePages_ /proc/meminfo > > #mkdir -p /dev/hugepages #mount -t hugetlbfs none /dev/hugepages`` > > > #dmesg | grep -e DMAR -e IOMMU > > #cat /proc/cmdline | grep iommu=pt #cat /proc/cmdline | grep > intel_iommu=on *- No Response* > > > *#modprobe vfio-pci *#chmod a+x /dev/vfio #chmod 0666 /dev/vfio/* > > > #$DPDK_DIR/usertools/dpdk-devbind.py --bind=vfio-pci eth1 > > *Routing table indicates that interface 0000:1c:00.1 is active. Not > modifying * > > > #$DPDK_DIR/usertools/dpdk-devbind.py --status > > Network devices using DPDK-compatible driver > > ============================================ > > <none> > > > Network devices using kernel driver > > =================================== > > 0000:1c:00.0 'Device 37d2' if=eth0 drv=i40e unused=vfio-pci *Active* > > 0000:1c:00.1 'Device 37d2' if=eth1 drv=i40e unused=vfio-pci *Active* > > > *#ifconfig 0000:1c:00.1 down * > > 0000:1c:00.1: ERROR while getting interface flags: No such device > > > *#$DPDK_DIR/usertools/dpdk-devbind.py --status* > > Network devices using kernel driver > > =================================== > > 0000:1c:00.0 'Device 37d2' if=eth0 drv=i40e unused=vfio-pci *Active* > > 0000:1c:00.1 'Device 37d2' if=eth1 drv=i40e unused=vfio-pci > > > #*$DPDK_DIR/usertools/dpdk-devbind.py --bind=vfio-pci eth1 * > > Error: bind failed for 0000:1c:00.1 - Cannot bind to driver vfio-pci > > Error: unbind failed for 0000:1c:00.1 - Cannot open > /sys/bus/pci/drivers//unbind > > > #$DPDK_DIR/usertools/dpdk-devbind.py --status > > Network devices using kernel driver > > =================================== > > 0000:1c:00.0 'Device 37d2' if=eth0 drv=i40e unused=vfio-pci *Active* > > > #ifconfig 0000:1c:00.1 up > > 0000:1c:00.1: ERROR while getting interface flags: No such device > > > #$DPDK_DIR/usertools/dpdk-devbind.py –status (eth1 is not up) > > > *Note: I have tried with other version, but response is same as above.* > > Please let me know the way to resolve this issue. > > Thanks & Regards, > > Sanjay Kumar > Synergy Park, ODC5 > Hyderabad - 500032 > Mobile Phone : +91 9394 829 881 <+91%2093948%2029881> > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > >
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
