[dpdk-dev] Vhost-cuse port problem

wenxu wenx05124561 at 163.com
Thu Aug 6 11:50:40 CEST 2015


Hi  all,


I build a ovs-dpdk and vhost-cuse POC through INSTALL.DPDK.md.

There is a br0 with dpdk0 and vhost-cuse-1
I build dpdk with 2.0.0 and ovs with master branch
# ovs-vsctl show
ec651677-72ba-4345-a3ad-8f93fda7960e
    Bridge "br0"
        Port "br0"
            Interface "br0"
                type: internal
        Port "vhost-cuse-1"
            Interface "vhost-cuse-1"
                type: dpdkvhostcuse


I setup a virtual machine succesfully. qemu compiled with master branch which is ok for vhost-cuse
qemu-system-x86_64 -smp 2 -m 1024 -hda ../ubuntu.img -vnc :1 -netdev tap,id=mynet1,script=no,downscript=no,ifname=vhost-cuse-1,vhost=on -device virtio-net-pci,mac=22:33:44:55:66:77,netdev=mynet1 -object memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on -numa node,memdev=mem -mem-prealloc

2015-08-06T09:37:55.780Z|00001|dpdk(vhost_thread2)|INFO|vHost Device 'vhost-cuse-1' (0) has been added
vhost device add sucessfully, guest os is ubuntu14.04 with kernel 3.16

I set the br0 10.0.0.2/24 and virtual machine eth0 10.0.0.1/24
But they can't ping each other

I find host packets can sent to virtual machine, virtual machine also send packet back to vhost-cuse, but it doesn't forward to ovs
There are rx_packets in vhost-cuse-1 port. But no packets counter in ovs flows.

So I debug ovs
pmd_thread_main--->dp_netdev_process_rxq_port--->emc_processing
if (OVS_UNLIKELY(dp_packet_size(packets[i]) < ETH_HEADER_LEN)) {
            dp_packet_delete(packets[i]);
            continue;
        }

static inline uint32_t
dp_packet_size(const struct dp_packet *b)
{
    return b->mbuf.pkt_len;
}


ALL the packets size is 0, so the ovs drops the packets. Is there something wrong for vhost-cuse?


BR
Xu Wen
















-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00003.txt
URL: <http://dpdk.org/ml/archives/dev/attachments/20150806/43004fcc/attachment-0001.txt>


More information about the dev mailing list