From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 7408B6A6F for ; Tue, 23 Feb 2016 04:48:43 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 22 Feb 2016 19:48:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,487,1449561600"; d="scan'208";a="909060539" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by fmsmga001.fm.intel.com with ESMTP; 22 Feb 2016 19:48:43 -0800 Date: Tue, 23 Feb 2016 11:50:01 +0800 From: Yuanhan Liu To: Clarylin L Message-ID: <20160223035001.GA21426@yliu-dev.sh.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 03:48:43 -0000 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