libvirt interface type

linux bridge:

    <interface type='bridge'>
      <mac address='52:54:00:63:6b:fe'/>
      <source bridge='br-d100369a-d9'/>
      <target dev='tapd100369a-d9'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
 

ovs:

    <interface type='bridge'>
     <mac address='52:54:00:71:b1:b6'/>
     <source bridge='ovsbr'/>
     <virtualport type='openvswitch'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </interface>


vhostuser:

 <interface type='vhostuser'>
      <mac address='56:48:4f:53:54:01'/>
      <source type='unix' path='/tmp/dpdkvhostclient0' mode='server'/>
      <model type='virtio'/>
      <driver name='vhost' rx_queue_size='1024' tx_queue_size='1024'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
  </interface>

没有下面这部分,ovs的dpdkvhostuserclient接口state总是显示LINK_DOWN
<memory unit='KiB'>1194304</memory>
  <currentMemory unit='KiB'>1194304</currentMemory>
  <memoryBacking>
    <hugepages>
      <page size='1048576' unit='KiB' nodeset='0'/>
    </hugepages>
  </memoryBacking>
没有下面这部分,虽然dpdkvhostuserclient接口state正确了,但收不到报文

 <cpu mode='host-passthrough'>
    <numa>
      <cell id='0' cpus='0-1' memory='2097152' unit='KiB' memAccess='shared'/>
    </numa>
  </cpu>

 

vm:
echo 1 > /proc/sys/net/ipv4/ip_forward;

ifconfig br0 up


版权声明:本文为lanwu628原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。