> Hi,
> I am using ovs 2.4.0. I have added 1 physical dpdk port and 4 vhostuser ports.
> Following is my bridge:
>     Bridge "br0"
>         Port "dpdkvhost3"
>             Interface "dpdkvhost3"
>                 type: dpdkvhostuser
>         Port "dpdk0"
>             Interface "dpdk0"
>                 type: dpdk
>         Port "br0"
>             Interface "br0"
>                 type: internal
>         Port "dpdkvhost1"
>             Interface "dpdkvhost1"
>                 type: dpdkvhostuser
>         Port "dpdkvhost0"
>             Interface "dpdkvhost0"
>                 type: dpdkvhostuser
> However, the traffic is only received by the physcal ports and NOT by
> dpdkvhostuser ports. As you can see below that there are no Rx packets on
> any port other than port1(physical port)
>   port  4: rx pkts=0, bytes=?, drop=?, errs=?, frame=?, over=?, crc=?
>            tx pkts=0, bytes=?, drop=1511, errs=?, coll=?
>   port LOCAL: rx pkts=337, bytes=32050, drop=0, errs=0, frame=0, over=0,
> crc=0
>            tx pkts=5856, bytes=379808, drop=281, errs=0, coll=0
>   port  1: rx pkts=7419, bytes=505712, drop=0, errs=0, frame=0, over=0, crc=0
>            tx pkts=336, bytes=33604, drop=0, errs=0, coll=0
>   port  2: rx pkts=0, bytes=?, drop=?, errs=?, frame=?, over=?, crc=?
>            tx pkts=0, bytes=?, drop=6944, errs=?, coll=?
>   port  3: rx pkts=0, bytes=?, drop=?, errs=?, frame=?, over=?, crc=?
>            tx pkts=0, bytes=?, drop=4604, errs=?, coll=?
> 
> Following is the only flow in my bridge:
> NXST_FLOW reply (xid=0x4):
>  cookie=0x0, duration=8763.150s, table=0, n_packets=1969, n_bytes=127366,
> idle_age=14, actions=FLOOD
> 
> 
> Does anyone know why I am not receiving any traffic on other ports?

Have you brought up VMs with vhost-user ports successfully? dpdkvhost receive 
function will not succeed until a VM with the associated socket is detected.

Launch QEMU with the following (repeat for each dpdkvhostuser port):
-chardev socket,id=char1,path=/usr/local/var/run/openvswitch/dpdkvhost0
-netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce
-device virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1

Please see INSTALL.DPDK.md for further instructions.

If you have already gotten this far, have you seen any errors? You can enable 
RTE_LIBRTE_VHOST_DEBUG=y in DPDK to get some more clues.

Thanks,
Ciara

> 
> Regards
> Haris Tanvir
> 
> 
> 
> 
> 
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to