[ovs-discuss] [EXTERNAL] Re: Vhost Ports on OVS DPDK Bridge do not initialize properly when using virsh xml file

Steve Roberts robers97 at gmail.com
Wed Oct 21 14:08:40 UTC 2020


Thanks for sharing the blog, I've run into this same problem and your
triage path with help of the blog is giving me something to work with.
Did you resolve the best way to set the mac addresses?  It look like there
is an option on the switch port:

ovs-vsctl add-port ovs-br0 dpdkvhostclient1 -- set Interface
dpdkvhostclient1 type=dpdkvhostuserclient ofport_request=11
options:vhost-server-path="/usr/local/var/run/openvswitch/dpdkvhostclient1"
options:class=eth options:mac=00:11:22:33:44:56

and then you could also spec it in the libvirt xml:

    <interface type='vhostuser'>
      <mac address='52:54:00:27:6a:84'/>
      <source type='unix'
path='/usr/local/var/run/openvswitch/dpdkvhostclient1' mode='server'/>
      <model type='virtio'/>
      <driver queues='2'>
        <host mrg_rxbuf='on'/>
      </driver>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
    </interface>

I assume these reference the same MAC address, but I'm not sure if it
ultimately matters.  Since I'd like the orchestrator to add the port and
not change the vm definition, I'm hoping the setup enables the port
information to configure the container - but I would need to think about
the implications of that more :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20201021/bbb2bfb3/attachment.html>


More information about the discuss mailing list