From: "Sujith Sankar (ssujith)" <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
To: David Marchand <david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
Cc: "dev-VfR2kkLFssw@public.gmane.org"
<dev-VfR2kkLFssw@public.gmane.org>,
"Prasad Rao \(prrao\)"
<prrao-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH v3 6/6] DPDK changes for accommodating ENIC PMD
Date: Mon, 24 Nov 2014 15:51:02 +0000 [thread overview]
Message-ID: <D0995111.28833%ssujith@cisco.com> (raw)
In-Reply-To: <CALwxeUsQ4=jW-OB_AqXVHL8Rx7sAJt+qn8yTYDuW9j-r=e+afw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi David,
During the testing, I saw that the length field was 0. ENIC PMD validates the length of the BAR against a max value.
In order to get the length in the resource structure, I added this statement.
Thanks,
-Sujith
From: David Marchand <david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org<mailto:david.marchand@6wind.com>>
Date: Monday, 24 November 2014 4:33 pm
To: "Sujith Sankar (ssujith)" <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org<mailto:ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>>
Cc: "dev-VfR2kkLFssw@public.gmane.org<mailto:dev-VfR2kkLFssw@public.gmane.org>" <dev-VfR2kkLFssw@public.gmane.org<mailto:dev-VfR2kkLFssw@public.gmane.org>>, "Prasad Rao (prrao)" <prrao-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org<mailto:prrao-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>>
Subject: Re: [dpdk-dev] [PATCH v3 6/6] DPDK changes for accommodating ENIC PMD
Hello Sujith,
On Sun, Nov 23, 2014 at 5:08 PM, Sujith Sankar <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org<mailto:ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>> 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..6bf8f2e 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 */
Not sure I understand why you need to overwrite the length value.
This is supposed to be initialised before by "generic" code.
This looks like a hack or a workaround.
Can you elaborate on this change ?
Thanks.
--
David Marchand
next prev parent reply other threads:[~2014-11-24 15:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-23 16:08 [PATCH v3 0/6] Cisco Systems Inc. VIC Ethernet PMD - ENIC PMD Sujith Sankar
[not found] ` <1416758899-1351-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-11-23 16:08 ` [PATCH v3 1/6] ENIC PMD License Sujith Sankar
2014-11-23 16:08 ` [PATCH v3 2/6] ENIC PMD Makefile Sujith Sankar
2014-11-23 16:08 ` [PATCH v3 3/6] VNIC common code partially shared with ENIC kernel mode driver Sujith Sankar
2014-11-23 16:08 ` [PATCH v3 4/6] ENIC PMD specific code Sujith Sankar
2014-11-23 16:08 ` [PATCH v3 5/6] DPDK-ENIC PMD interface Sujith Sankar
2014-11-23 16:08 ` [PATCH v3 6/6] DPDK changes for accommodating ENIC PMD Sujith Sankar
[not found] ` <1416758899-1351-7-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-11-24 0:17 ` Neil Horman
[not found] ` <20141124001744.GA7751-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2014-11-24 5:45 ` Sujith Sankar (ssujith)
[not found] ` <D098AD4B.28692%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-11-24 11:33 ` Neil Horman
[not found] ` <20141124113315.GA6038-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-11-24 16:12 ` Sujith Sankar (ssujith)
[not found] ` <D099544C.28847%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-11-24 17:19 ` Neil Horman
[not found] ` <20141124171942.GC7532-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-11-25 6:13 ` Sujith Sankar (ssujith)
[not found] ` <D09A193B.28971%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-11-25 11:30 ` Neil Horman
2014-11-24 11:03 ` David Marchand
[not found] ` <CALwxeUsQ4=jW-OB_AqXVHL8Rx7sAJt+qn8yTYDuW9j-r=e+afw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-24 15:51 ` Sujith Sankar (ssujith) [this message]
[not found] ` <D0995111.28833%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-11-24 16:15 ` David Marchand
[not found] ` <CALwxeUuSf4GsQVmLmfVJPqCjFJMOofU09QUcY9DMJPvHorA9YA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-24 16:27 ` Sujith Sankar (ssujith)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D0995111.28833%ssujith@cisco.com \
--to=ssujith-fyb4gu1cfyuavxtiumwx3w@public.gmane.org \
--cc=david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
--cc=prrao-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.