From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by dpdk.org (Postfix) with ESMTP id 76766378E for ; Fri, 25 Nov 2016 08:58:44 +0100 (CET) Received: by mail-io0-f179.google.com with SMTP id c21so108701505ioj.1 for ; Thu, 24 Nov 2016 23:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Wj9l42whA3wHr5wQ2jwFRu99LVtTu6z5RuUGjEtYCnY=; b=j6CoziltXrDotp+mSlFgIjiuYheapfkQNS5T9/4++LaCPBtO4oVaQ3NkZT++LhiXUS H7HQyRJFNne6UrMora+VG9qTPe5uXyl45IM8M9T+NJpBLcb1CGIBmaKxQjo1Yd+E/1Er wLPMvgr9fElr+l7iCuLgR+1tCod8HcXzzJp1OUngWgN3kzc7g9EZmbBS5gSLI/7aTKTS ECRoigzpNztmwxhO/lbOHMl8jJeTtRXt0okV0/P9/h//Rm1tcNnBDzjrrEl2qofUEjNf TwW6ooVEj6EZq1QF3SveU6z6FyCGIaibANx4UdWjWHWMibD0wUTfKY1nnn4/6tHU3XZw OO7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Wj9l42whA3wHr5wQ2jwFRu99LVtTu6z5RuUGjEtYCnY=; b=akWt6Si2WwsozFRIweOfSU5NbAoSF/0YoYh0fgtdni+laMJhFOXPEEtNF61dBBWofx SSxZTkGf0yzwWNJnf8YCaRACsLxGEOwHMfdRfmWClqBMYmK6buyKTNwdxEk64gFOc3JM v/tGsnUpcpbKwrHeM/Ht8X9tV8h/ad809VE3jlfHwwXy4fun9NISSlk+MKakSJH9+42i 0hepjaNJ4mHX5krvnglpS8m4++t50bLNxaNHPFoCSNkzp9co1bT9OKfubU+V1g9oeGfW dmClg+4Yu2MdtzvdT4GmTaA5GcWT+MtjuwhFwX8AJO7PNEEU7vayCzGRVhTxKfQgb30w 328g== X-Gm-Message-State: AKaTC03RioAQhyY7aMF/QdXnODbW7zbPfvCnb5mmMkjg/whZnqzI/34jlQsH5yWBHLx1uhDCrpWclLk7g7WIPw== X-Received: by 10.107.174.4 with SMTP id x4mr5148080ioe.194.1480060723591; Thu, 24 Nov 2016 23:58:43 -0800 (PST) MIME-Version: 1.0 From: edgar helmut Date: Fri, 25 Nov 2016 07:58:33 +0000 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] new_device is never created at the vhost-switch sample app X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 07:58:44 -0000 Hi, I am following http://dpdk.org/doc/guides/sample_app_ug/vhost.html using 16.11 in order to have a simple VM forwarding packets from one NIC to another efficiently, but it doesn't work... so I need some help to understand what am i missing. I am using x520 (intel 82599). host is ubuntu 16.04 and dpdk 16.11. my steps at host: 1. enabling VHOST defines and building x86_64-native-linuxapp-gcc. 2. both interfaces are bind like: 0000:04:00.0 'Ethernet 10G 2P X520 Adapter' drv=igb_uio unused=ixgbe 0000:04:00.1 'Ethernet 10G 2P X520 Adapter' drv=igb_uio unused=ixgbe 3. then making the project examples/vhost and executing: ./build/vhost-switch -c 0x03 -n 4 --socket-mem 1024 --file-prefix p1 -- -p 1 --vm2vm 0 --socket-file /tmp/sock1 --client -P ./build/vhost-switch -c 0x30 -n 4 --socket-mem 1024 --file-prefix p2 -- -p 2 --vm2vm 0 --socket-file /tmp/sock2 --client -P 4. creating the guest qemu- system-x86_64 -chardev socket,id=char1,path=/tmp/sock1,server -netdev type=vhost-user,id=hostnet1,chardev=char1,queues=2 -device virtio-net-pci,mq=on,vectors=2,netdev=hostnet1,id=net1,mac=00:00:00:00:00:01 -chardev socket,id=char2,path=/tmp/sock2,server -netdev type=vhost-user,id=hostnet2,chardev=char2,queues=2 -device virtio-net-pci,mq=on,vectors=2,netdev=hostnet2,id=net2,mac=00:00:00:00:00:02 -object memory-backend-file,id=mem2,size=2048M,mem-path=/run/hugepages,share=on ... my steps on the guest: 1. enabling VHOST defines and building x86_64-native-linuxapp-gcc. 2. successfully setting up environment: modprobe uio_pci_generic ./tools/dpdk-devbind.py -b uio_pci_generic 0000:00:07.0 ./tools/dpdk-devbind.py -b uio_pci_generic 0000:00:08.0 ./examples/l3fwd/build/l3fwd -c 0x3 -n 3 -- --parse-ptype -p 0x3 -P -L --config="(0,0,0),(0,1,1),(1,0,0),(1,1,1)" --no-numa it looks like the l3fwd app initialized successfully but it receives no traffic. I see at the host that connection is made however no traffic arrives to the host. digging into the code i see that the message VHOST_USER_SET_VRING_KICK never arrives to the host hence the callback new_device is never called and I can't figure out why. Any ideas? Thanks, Edgar