From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f169.google.com (mail-wj0-f169.google.com [209.85.210.169]) by dpdk.org (Postfix) with ESMTP id 79F6E37B8 for ; Sun, 4 Dec 2016 07:33:08 +0100 (CET) Received: by mail-wj0-f169.google.com with SMTP id tg4so9137711wjb.1 for ; Sat, 03 Dec 2016 22:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=tyPulFIGDDRNLtshOzGUy8ZBYmYRuMwjOlOwW++RvuU=; b=1DTLSy2pynR28wRttqGI/J8UAYbSIimtT39l7dTJUkKSG8X32Xzc308ATVZAP2Abgs 4Y5cPZtyHgoJ7ElT3SZXYqEDIDA+85A+vtFgWEVHLKi1fXP0uoxW/BLfN0W8i94oEUue n5+b4JnLoR8Vno439uC2lU+E9oimtvKs75YNHjJiMzbrrzm/NbI8nUqItWsGgJeBQpr3 jHJJOaVN9W2nuh81y8cEtvy1QvF1Kr2xhzlgwN2lZpHnrIM/hgKPXJdkE9hPYxFwj05k FZGrzzd/xSJqE2J/5UNwaspKqXYjCoWEw7ATuE8m4sQu0r7VrKCPZg8a+w7aGntbOQhG TsRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tyPulFIGDDRNLtshOzGUy8ZBYmYRuMwjOlOwW++RvuU=; b=ffzlhwPlwvZuiOQ7D/C4uC9hFfx7lGMbNB6Obf2x1gKOU4ww6tQQWvmAClGnm4KOqt 19PsgTyesYebq/ClpNqv4SH6ixU9DGL966ggsQ6+Es7Uo0Dgk0yeX10rbpds2jwkqAJD YENVcNPuP0o+yCI9zMFt7BqakXsSq9ndMCxO3B73EbB1RJGNWdJzufTJM/h7LXW5kBkc 2jGbkebTd9oy021GhxCJuHtbX6Tid4uTuUihlGOpNMvoG4of1suhxV2j2gYUKS3cJrQm KLUZoTpdrfskYm2Rwqw531+frDUjeZRBr4wBBusp/Gi/pI/p1whTRPV0cw/9a98/leay dcSw== X-Gm-Message-State: AKaTC00dvY0LSMnF0dSSViyWAXSGijXlsyF0xkUnJ9V4QoYD7taui1dbnsiO8oGrG+NjFkUPLqFbkQ//AAF+sQ== X-Received: by 10.194.52.42 with SMTP id q10mr43430948wjo.50.1480833188078; Sat, 03 Dec 2016 22:33:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: edgar helmut Date: Sun, 04 Dec 2016 06:32:57 +0000 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 06:33:08 -0000 Hi, the silence confuses me, at least I would like to understand if it is well supported or not for the release so I can decide whether to find an alternative or not. what is the trigger for the guest to send the VHOST_USER_SET_VRING_KICK? Thanks Edgar On Fri, Nov 25, 2016 at 9:58 AM edgar helmut wrote: > 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 >