DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Vhost-cuse port problem
@ 2015-08-06  9:50 wenxu
  0 siblings, 0 replies; only message in thread
From: wenxu @ 2015-08-06  9:50 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

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

















[-- Attachment #2: ATT00003.txt --]
[-- Type: text/plain, Size: 141 bytes --]

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-06  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06  9:50 [dpdk-dev] Vhost-cuse port problem wenxu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).