From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 2B5014A65 for ; Mon, 5 Dec 2016 18:27:41 +0100 (CET) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uB5HNnIC111915 for ; Mon, 5 Dec 2016 12:27:40 -0500 Received: from e28smtp06.in.ibm.com (e28smtp06.in.ibm.com [125.16.236.6]) by mx0a-001b2d01.pphosted.com with ESMTP id 27571cphwk-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 05 Dec 2016 12:27:40 -0500 Received: from localhost by e28smtp06.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Dec 2016 22:57:37 +0530 Received: from d28dlp02.in.ibm.com (9.184.220.127) by e28smtp06.in.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 5 Dec 2016 22:57:34 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id AFD26394004E for ; Mon, 5 Dec 2016 22:57:33 +0530 (IST) Received: from d28av08.in.ibm.com (d28av08.in.ibm.com [9.184.220.148]) by d28relay01.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uB5HRXZX39714826 for ; Mon, 5 Dec 2016 22:57:33 +0530 Received: from d28av08.in.ibm.com (localhost [127.0.0.1]) by d28av08.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uB5HRW35016375 for ; Mon, 5 Dec 2016 22:57:32 +0530 Received: from [9.79.190.181] ([9.79.190.181]) by d28av08.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id uB5HRV3c016322; Mon, 5 Dec 2016 22:57:32 +0530 To: edgar helmut References: From: gowrishankar muthukrishnan Cc: users@dpdk.org Date: Mon, 5 Dec 2016 22:57:31 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16120517-0020-0000-0000-00000073640F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16120517-0021-0000-0000-00000188A05D Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-05_13:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612050269 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: Mon, 05 Dec 2016 17:27:42 -0000 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=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. 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 > >