[ovs-discuss] How to enable dpdk interface for OVS+DPDK on RHEL?

Levente Csikor csikor at tmit.bme.hu
Tue Jul 5 07:53:03 UTC 2016


Hi,

That manual is only for installing OVS and linking it to DPDK.
However, you need to install DPDK on your own before installing OVS with 
DPDK.

download DPDK from here: http://dpdk.org/download
follow instructions for the installation procedure (not that difficult - 
less commands needed than for OVS :) ).


For using OVS with DPDK, you need to insert the userspace IO driver 
provided by DPDK, then enable this driver on the interfaces you want to 
use with DPDK (this binding script will be available under: 
your-dpdk-directory/tools/dpdk_nic_bind.py

argument --status will print out which port is used by the kernel driver 
and the dpdk driver.

you could also find more details under http://dpdk.org/download on how 
to bind your interface to DPDK driver.



On 07/05/2016 09:45 AM, Binghan wrote:
> Hi,
>
> I built OVS+DPDK from source. I use OVS 2.5.0 and DPDK 2.2.0, the 
> build environment is RHEL 7.2. I try to follow this instruction, 
> https://github.com/openvswitch/ovs/blob/master/INSTALL.Fedora.md
> However, it reports:
> /make rpm-fedora/
> /make: *** No rule to make target `rpm-fedora'.  Stop./
>
> So, try commands as follow,
> ./boot.sh
> ./configure
> rpmbuild -bb rhel/openvswitch-fedora.spec --with dpdk
>
> Finally, I got following RPMs,
>
> /RPMS/x86_64/openvswitch-2.5.0.el7.x86_64.rpm/
>
> /RPMS/noarch/openvswitch-2.5.0.el7.noarch./
>
> /RPMS/noarch/python-openvswitch-2.5.0.el7.noarch.rpm/
>
> /RPMS/noarch/openvswitch-test-2.5.0.el7.noarch.rpm/
>
> /RPMS/x86_64/openvswitch-devel-2.5.0.el7.x86_64.rpm/
>
> /RPMS/x86_64/openvswitch-ovn-2.5.0.el7.x86_64.rpm/
>
> /RPMS/x86_64/openvswitch-debuginfo-2.5.0.el7.x86_64.rpm/
>
>
> Then, I installed rpm RPMS/x86_64/openvswitch-2.5.0.el7.x86_64.rpm.
>
> I can create bridge and ports, but dpdk interface does not exist.
>
> /ovs-vsctl get Open_vSwitch . iface_types/
>
> /[geneve, gre, internal, ipsec_gre, "l3gre", lisp, patch, stt, system, 
> tap, vxlan ]/
>
>
> How can I enable dpdk interface or Is there anything wrong with my 
> build procedure?
>
>
> BRs,
>
> Binghan
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160705/6f61c832/attachment-0002.html>


More information about the discuss mailing list