From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by dpdk.org (Postfix) with ESMTP id BF2083975 for ; Tue, 25 Nov 2014 10:51:13 +0100 (CET) Received: by mail-oi0-f47.google.com with SMTP id v63so156173oia.34 for ; Tue, 25 Nov 2014 02:02:05 -0800 (PST) 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=ONbp4JOfapki5Qjxe5S/LMrIhTDtCswxPITrEyXVMYc=; b=hP93IGGmWyOEuHIMg4bmqptQh5BphuH1ufymjSButdWdquxN0p+yCToM0n1N6r16va RuWjJkNxNWLnG+d57Q8Q59DR1HKE7PzxF2hq21dCddYF9XDmvKXUpgU2axcbcZFb/Dyh 82qrfS4tfJzbdBK2k3si63nOgO7mYA8nTDxoXXNdKhg3Oc/1HNhkv43xmbGSduEW4xnK GZiB0vYZDHOx3k6vRRjI7E09RcKXysIRC59llaxfvckNXZYrCwnJG7b35S3ZbusJFOXD oK1z0nppPSwFuM+qjn+tBLQq4zmkFWmBoN9Fok/ZUKSAknzqYbLFVH+UzrMlY7yHKk/B jnpg== X-Gm-Message-State: ALoCoQnVO/3vYt2V3Fx3cYRlqiMaUzOTNLohY8/Oj0Wo2h/Rfr1XZagPehJdT5fCe5c9rYpcxWdH MIME-Version: 1.0 X-Received: by 10.202.45.198 with SMTP id t189mr13689687oit.68.1416909724967; Tue, 25 Nov 2014 02:02:04 -0800 (PST) Received: by 10.202.60.197 with HTTP; Tue, 25 Nov 2014 02:02:04 -0800 (PST) In-Reply-To: <1416933018-23415-7-git-send-email-ssujith@cisco.com> References: <1416933018-23415-1-git-send-email-ssujith@cisco.com> <1416933018-23415-7-git-send-email-ssujith@cisco.com> Date: Tue, 25 Nov 2014 11:02:04 +0100 Message-ID: From: David Marchand To: Sujith Sankar Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" , "Prasad Rao \(prrao\)" Subject: Re: [dpdk-dev] [PATCH v4 6/6] DPDK changes for accommodating ENIC PMD 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, 25 Nov 2014 09:51:14 -0000 Hello Sujith, On Tue, Nov 25, 2014 at 5:30 PM, Sujith Sankar wrote: > diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > index c776ddc..87e7862 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > +++ b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > @@ -736,6 +736,7 @@ pci_vfio_map_resource(struct rte_pci_device *dev) > maps[i].offset = reg.offset; > maps[i].size = reg.size; > dev->mem_resource[i].addr = bar_addr; > + dev->mem_resource[i].len = reg.size; > } > > /* if secondary process, do not set up interrupts */ > I still think this part is wrong. The length should have been populated by pci_parse_sysfs_resource(). Are you sure this length is 0 ? Can you do give me the result of cat /sys/bus/pci/devices/$your_device_pci_address/resource ? Thanks. -- David Marchand