From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f194.google.com (mail-wj0-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 5FDA236E for ; Thu, 15 Dec 2016 07:40:02 +0100 (CET) Received: by mail-wj0-f194.google.com with SMTP id kp2so8059690wjc.0 for ; Wed, 14 Dec 2016 22:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=43T5rBWY6MwPEcgu+j6ziJyjkAK3gSWyuGgLx6+fK3c=; b=GSSc6VM5hJ+fw5P8+vs3gN/l91rRvY+P5i2K3LnAvQ7L2PW3qAFxgPQwIc6R+Gn2ak 98f7DBWyP8PF111rkCt7Z6Gw7LNqmaRN9GbIbgicfrJ3MXFAti2Avu5QVJhfq03jpOv8 3FXm4gf1aqSThJOhpOZCpxPiJp2XgEz1xmUSQW9kvyqwQwrnST6OGjLS4oEmp/v0ZWbK 6o1ihQA98zHNlYnSnbmLRlLTVj8UdkvMYNdrG+VYJ8SUhjeMXn+bwPp/6GMv0LVyqI8B 8XDKbqUGF7/xK/2flHWx5z7Zbb2lZIb65yeRo/F3yKeUg2+Yw8u9GCU7apLRjbjSZnSK bVhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=43T5rBWY6MwPEcgu+j6ziJyjkAK3gSWyuGgLx6+fK3c=; b=WXbN3HVFDINP0Wt7BRGEPTxFZmkXtvG5S510jmq7CZ9DJwoWw+SHS+FtAOeeBS8bQ7 5wmvLX/ah/im2/J+BTJr3kpcM6JKDSlItvbbqFBC+RPQP8rGh9XlQ1FYe8CrLGqGLSkP 1XeRF+RAPW7fUAg3uZbcuYUUQ/EMyGKA2dJm8Ijrcn6og7SkU1R8ndLkSJWiAfyxeuYY NbLw/xGV+C6j13Z1L71XIeF+1u+jtn/XY4DlArHp3UsS0Eo3TS7qSBcIG5BtY0WTtx+W 5uxfXQsBPz522u73TOm8lX7gWKFIHJ5x9267dtD1JL5e4NnZJPcJUtg1nZAfv062zR9Z 6ZvQ== X-Gm-Message-State: AKaTC01nsa1loqRc03DKUiOB9Je5EoEET4jJRNOYJ4w9MlK3hwuSOiozqKYL0c3yrvF2OAkYvmWalJW9xLeivA== X-Received: by 10.194.52.42 with SMTP id q10mr668668wjo.50.1481784001898; Wed, 14 Dec 2016 22:40:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.175.70 with HTTP; Wed, 14 Dec 2016 22:40:01 -0800 (PST) Received: by 10.80.175.70 with HTTP; Wed, 14 Dec 2016 22:40:01 -0800 (PST) In-Reply-To: References: From: edgar helmut Date: Thu, 15 Dec 2016 08:40:01 +0200 Message-ID: To: gowrishankar muthukrishnan Cc: 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: Thu, 15 Dec 2016 06:40:02 -0000 Thanks Gowrishankar Using thevtestpmd resulted with the same behavior. However it was solved after getting and building the latest qemu with softmmu flag. Then it started to function. Until then I was using the qemu as installed on my machine using the default package configuration (using apt install...). Thanks On 05 Dec 2016 7:27 PM, "gowrishankar muthukrishnan" < gowrishankar.m@linux.vnet.ibm.com> wrote: On Friday 25 November 2016 01:28 PM, 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=0 > 0: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=0 > 0: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. > How about simple io forward through testpmd here (testpmd -c 0x3 -n 3 -- -portmask=0x3) ? Are you ending up traffic not seen for this case as well ? (Just to eliminate cases with l3fwd). Thanks, Gowrishankar > 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 > > >