From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by dpdk.org (Postfix) with ESMTP id 5A63A137C for ; Fri, 26 Feb 2016 02:24:59 +0100 (CET) Received: by mail-lf0-f54.google.com with SMTP id j78so44342581lfb.1 for ; Thu, 25 Feb 2016 17:24:59 -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=+KmZsqAbytW+Qv5DbVgst0TLiaYxNCMTMei15GNVeY0=; b=FNqreDYjsWtRQCJBQviRFIGFsZKXWbxRU6HvJxJCAutMMJLpBcZWer6lR2MjB1xaNf uiE77umDKHctL6MkBi4FO5xLnqZD5kSBuAnEvRWWcC4TRBTyl/fqbMN6zhUh52R4IEQF T9LIFj1Odxw/rq+2V1Uu0vn5CkgI5vI22DhnxLVniRvDxISUnQmOkwhoVzvPc5eBQsT/ bvqXpKUx9VpTx6aFhECk5lAHFUKlVAv6ufggZkfHAdhEVgMFSSoMivAm5dfakVy5sMVk sC2FlCh4KhwHMEtJiqgR4bt9C9o8bpihkkvHJCJY9DE0cVWr6VADper3hcxUBiNJeJ53 H6AA== 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=+KmZsqAbytW+Qv5DbVgst0TLiaYxNCMTMei15GNVeY0=; b=YXKfxTHYIgDUZYAHDtWD2lK+O34vlMG/t0+8aLqAmN8xrrWok/7jhC2seD4skTCvty +ELmTvCY9HPNhL+k/eQffgcQJnfH8JRK/tNnb8aGysYuDB38xcDtmnfPikLet0SQCxCH HFWORo3H5vwTLIauVw+7jPomj+FG9+xsDtmKFZjTx6AP+jUSwtjP//bQcVkB0rR4sJ5j aMs6P7oZBjYNOPLFEeYQ7j8quBTCEPAIk4qckweihkv6lR7pu8kNg41qHESMDfYt3ojQ axXO6mbKVD+sFOZPDzltp7W0F9o7X/R2S2mbRPbgxvrotbvMvrziNcidH2IsHEhXzK4M ZExA== X-Gm-Message-State: AG10YOSzLhSt3RuomxL41NvVkxIYgxp/X2CgwiLeslxp989ORMj3oRFIdONCsbXeV3WNZy5kKkBdGDgDqL+Lbg== MIME-Version: 1.0 X-Received: by 10.25.5.7 with SMTP id 7mr17982763lff.143.1456449899002; Thu, 25 Feb 2016 17:24:59 -0800 (PST) Received: by 10.114.233.36 with HTTP; Thu, 25 Feb 2016 17:24:58 -0800 (PST) In-Reply-To: References: <20160223035001.GA21426@yliu-dev.sh.intel.com> Date: Thu, 25 Feb 2016 17:24:58 -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: Fri, 26 Feb 2016 01:24:59 -0000 Played with it a little bit more. It can receive packets only if promiscuous mode is enabled in DPDK. On Mon, Feb 22, 2016 at 11:00 PM, Clarylin L wrote: > 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 >> > >