From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id E6A311B4D5 for ; Thu, 28 Jun 2018 21:18:14 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F3BAE3683B for ; Thu, 28 Jun 2018 19:18:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E67A1BA93 for ; Thu, 28 Jun 2018 19:18:13 +0000 (UTC) Received: from zmail18.collab.prod.int.phx2.redhat.com (zmail18.collab.prod.int.phx2.redhat.com [10.5.83.21]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DCCB24A460; Thu, 28 Jun 2018 19:18:13 +0000 (UTC) Date: Thu, 28 Jun 2018 15:18:13 -0400 (EDT) From: Bala Sankaran To: users@dpdk.org Cc: Aaron Conole Message-ID: <1882345510.2557424.1530213493803.JavaMail.zimbra@redhat.com> In-Reply-To: <1291144238.2553240.1530211305119.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.25.148, 10.4.195.6] Thread-Topic: Traffic doesn't forward on virtual devices Thread-Index: oQTMFRAawVHbwy4YZZ9aWPlHFRqacg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 28 Jun 2018 19:18:14 +0000 (UTC) Subject: [dpdk-users] Traffic doesn't forward on virtual devices 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, 28 Jun 2018 19:18:15 -0000 Hello team, I am working on a project to do PVP tests on dpdk. As a first step, I would like to get traffic flow between tap devices. I'm in process of setting up the architecture, in which I've used testpmd to forward traffic between two virtual devices(tap and vhost users) over a bridge. While I'm at it, I've identified that the internal dev_attached flag never gets set to 1 from the rte_eth_vhost.c file. I've tried to manually set it to 1 in the start routine, but I just see that the queue index being referenced is out of range. I'm not sure how to proceed. Has anyone had luck using testpmd to communicate with vhost-user devices? If yes, any hints on a workaround? Here's how I configured my setup after installing dpdk and openvswitch: 1. To start ovs-ctl: /usr/local/share/openvswitch/scripts/ovs-ctl start 2. Setup hugepages: echo '2048' > /proc/sys/vm/nr_hugepages 3. Add a new network namespace: ip netns add ns1 4. Add and set a bridge: ovs-vsctl add-br dpdkbr0 -- set Bridge dpdkbr0 datapath_type=netdev options:vhost-server-path=/usr/local/var/run/openvswitch/vhu0 ovs-vsctl show 5. Add a vhost user to the bridge created: ovs-vsctl add-port dpdkbr0 vhu0 -- set Interface vhu0 type=dpdkvhostuserclient 6. Execute bash on the network namespace: ip netns exec ns1 bash 7. Use testpmd and connect the namespaces: testpmd --socket-mem=512 --vdev='eth_vhost0,iface=/usr/local/var/run/openvswitch/vhu0,queues=1' --vdev='net_tap0,iface=tap0' --file-prefix page0 -- -i I repeated steps 3 - 7 for another network namespace on the same bridge. Following this, in fresh terminals, I assigned IP addresses to the tap devices created and tried pinging them. From port statistics, I identified the above mentioned issue with the dev_attached and queue statistics. I would greatly appreciate any help from your end. Thanks. ------------------------------------------------- Bala Sankaran Networking Services Intern Red Hat Inc .,