[ovs-discuss] OVS(2.5.4)-DPDK(2.2) - dpdkvhostuser issue

Aaron Conole aconole at redhat.com
Wed Dec 13 21:54:12 UTC 2017


Subrata Nath via discuss <ovs-discuss at openvswitch.org> writes:

> HI,
>
> I have built OVS version 2.5.4 with DPDK 2.2 and want to create interface type dpdkvhostuser for the
> container.
>
> I followed the tutorial
> https://www.youtube.com/watch?v=gkCMk-1m3HA&list=PLg-UKERBljNx44Q68QfQcYsza-fV0ARbp&index=4
> and then when i attempted to create the "dpdkvhostuser" interfaces, following error is coming - 
>
> ovs-vsctl: ovs|00001|vsctl|INFO|Called as ./utilities/ovs-vsctl add-port br0 vhost-user1 -- set Interface
> vhost-user1 type=dpdkvhostuser
> ovs-vswitchd: ovs|00031|netdev|WARN|could not create netdev vhost-user1 of unknown
> type dpdkvhostuser
> ovs-vswitchd: ovs|00032|bridge|WARN|could not open network device vhost-user1
> (Address family not supported by protocol). 
>
> RHEL kernel version is - 4.4.57-1.el7.elrepo.x86_64. Similar stuffs worked fine previously with DPDK
> 17.05 and OVS 2.8.1. 

You'll have issues using your steps and OvS 2.5.

For ovs 2.5, you'll need to manually launch ovs-vswitchd using the
--dpdk ... -- command line options.

See: http://openvswitch.org/support/dist-docs-2.5/INSTALL.DPDK.md.txt
for more information.

Hope this helps.

> I have done all the necessary pre-actions-
>
> rm -rf /usr/local/etc/openvswitch
> rm -rf /usr/local/var/run/openvswitch
> mkdir -p /usr/local/etc/openvswitch
> mkdir -p /usr/local/var/run/openvswitch
> modprobe uio
> insmod igb_uio.ko
> insmod rte_kni.ko kthread_mode =multiple/single
> mkdir -p /mnt/huge
> mount -t hugetlbfs nodev /mnt/huge
> mkdir -p /mnt/hugepages
> mount -t hugetlbfs nodev /mnt/hugepages
> echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
>
> ./ovsdb/ovsdb-tool create /usr/lo\cal/etc/openvswitch/conf.db ./vswitchd/vswitch.ovsschema
> ./ovsdb/ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock
> --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach
> ./utilities/ovs-vsctl --no-wait init
> ./utilities/ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
> other_config:dpdk-lcore-mask=0x2 other_config:dpdk-socket-mem="512"
> ./vswitchd/ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock --pidfile --detach
> ./utilities/ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=0x4
> ./utilities/ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev
>
> Regards,
> Subrata
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


More information about the discuss mailing list