DPDK patches and discussions
 help / color / mirror / Atom feed
From: wenxu  <wenx05124561@163.com>
To: dev@dpdk.org
Subject: [dpdk-dev] Vhost-cuse port problem
Date: Thu, 6 Aug 2015 17:50:40 +0800 (CST)	[thread overview]
Message-ID: <64bb455d.11f1d.14f026b7240.Coremail.wenx05124561@163.com> (raw)

[-- 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

                 reply	other threads:[~2015-08-06  9:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64bb455d.11f1d.14f026b7240.Coremail.wenx05124561@163.com \
    --to=wenx05124561@163.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).