From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by dpdk.org (Postfix) with ESMTP id D6D3F2C4E for ; Tue, 23 Feb 2016 08:00:28 +0100 (CET) Received: by mail-lb0-f175.google.com with SMTP id x1so95415940lbj.3 for ; Mon, 22 Feb 2016 23:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vCUX5yleR3Y9qw7gItP2n710fkVPVYhRIQDmMysIhus=; b=hW+qBpddSEMRm82sz0yrlAmVQZvQDghvmX5+rru6KGu8y2259tLy9MzTmoakSKBMf5 rdBddxdzJlMitq7Fjnv8VBjcQTyljdTr9Ji99okMbygJRoHqLCrV+4dFFEYNq7mSyyPF otSeiUxwY1R0s2NbRGLz9ZGvqp4gjs7l02qjW4DHicZJ558a9u3d3+AhPbYirmWpPMj2 KZvyC5mliRjwcyFm4vxJIo7y3ciOpRBzXf+z0zKbxVjappRz0eYWXogvGIXUMkoj/gDO cMtWV8PWKp0+yNz13az6IqF0WoWVD0+Hl7t4hTqcMgfOflAmEU1L3QaulAn9hCaNSZdZ I55Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vCUX5yleR3Y9qw7gItP2n710fkVPVYhRIQDmMysIhus=; b=RTcD7tKuDvhVnucDIdChD/jnLGC5iy4ml1L2l+e6SLnZ354w//vZzhznjXzXIRsQsp EHL2y3fW3qebitSSkTutTofZGFOq+2Kebp5a9sm0xQuFSDQGIy9Uy5rkZvzVv4i6g4S1 jg08UbEpJq5pfkp9BnEc4u6/DIAwSW7wsHnZEqNYAFUBXqRMdVEceNti3wV5MFcJ17dB spIwBy7xpUntk+aZ2xzMor4wAUPqtkC0FOTbdmzzxjvQjjwCpoTSFj9WSZIEXTq4XHxO /840AcHXgAKfyFQEXFQBCd0IdgBUY6XqBPa7p5XQkg+rHM4XS//3/pEnTakoxBTaZAv8 xsqQ== X-Gm-Message-State: AG10YOR6HOEXt+gYiut58W1wG8h1XLhV/3G+rbXSEWVG8IyzgwXMGkFUTl7dO5Mw8vffU6MHI3l0yl3aR1W0mw== MIME-Version: 1.0 X-Received: by 10.112.161.198 with SMTP id xu6mr11504286lbb.131.1456210828504; Mon, 22 Feb 2016 23:00:28 -0800 (PST) Received: by 10.114.233.36 with HTTP; Mon, 22 Feb 2016 23:00:28 -0800 (PST) In-Reply-To: <20160223035001.GA21426@yliu-dev.sh.intel.com> References: <20160223035001.GA21426@yliu-dev.sh.intel.com> Date: Mon, 22 Feb 2016 23:00:28 -0800 Message-ID: From: Clarylin L To: Yuanhan Liu Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [dpdk-virtio] DPDK stopped working on virtio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 07:00:29 -0000 I am working with DPDK 2.0. I guess it's not DPDK code issue , but more like an environment issue (as same code has been working fine before. It's even working on another setup now). Someone might have accidentally changed my setup, and I want to find out what made dpdk-virtio stop working. Is DPDK-virtio dependent on any specific modules on the hypervisor? or are there any configurations on the hypervisor that would impact the functionality of virtio? or anything else I need to look into and check? My VM is running on Ubuntu KVM. On Mon, Feb 22, 2016 at 7:50 PM, Yuanhan Liu wrote: > On Mon, Feb 22, 2016 at 11:15:57AM -0800, Clarylin L wrote: > > I am running DPDK application (testpmd) within a VM based on virtio. With > > the same hypervisor and same DPDK code, it used to work well. But it > > stopped working since last week. The VM's port could not receive > anything. > > I ran tcpdump on host's physical port, bridge interface as well as vnet > > interface, and did see packets coming in. However on VM's port there was > > nothing. > > > > I ran gdb trying to debug, it hit function virtio_recv_mergeable_pkts(), > > but nb_used=VIRTQUEUE_NUSED(rxvq) always gave 0. I guess it's because the > > queue was empty. > > > > I enabled the PMD debug logging and the only thing that might be an issue > > was the following part. Other than this I could not see any thing that > > could indicate potential issues. > > > > Thu Feb 18 19:20:10 2016^@PMD: get_uio_dev(): Could not find uio resource > > Thu Feb 18 19:20:10 2016^@PMD: virtio_resource_init_by_ioports(): PCI > Port > > IO found start=0xc040 with size=0x40 > > That could be normal, when you don't bind the driver to igb_uio. > > > If someone can give any pointers that I should further look into, that'd > be > > very helpful. Appreciate your help! > > What's the last commit you are testing? And what are the steps > to reproduce it? I have a quick try with vhost-switch example, > with pkts injected by IXIA; it works fine here. > > Or better, mind do a git bisect? There aren't too many commits > there. It should be a pretty fast bisect. > > --yliu >