[dpdk-dev] [PATCH v7] eal: map uio resources after hugepages.

2014-11-07 Thread lxu
e virtual address of uio resource mapped still does not refer to the parameter. In that case "EAL: pci_map_resource(): cannot mmap" will be got. This patch try to map uio resources after hugepages. So the error can be resolved by set base-virtaddr into free virtual address space.

[dpdk-dev] [PATCH v6] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-07 Thread lxu
; can be resolved by set base-virtaddr into free virtual address space. Signed-off-by: lxu --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/li

[dpdk-dev] [PATCH v5] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-06 Thread lxu
process links a lot of additional shared libraries, so the address 0x77fba000 had already be used. I had fixed similar hugepages mmap problems by base_virtaddr. So I believe the uio resource should be mapped into base_virtaddr at this situation. This patch try to fix it. Signed-off-by

[dpdk-dev] [PATCH v4] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-06 Thread lxu
Signed-off-by: lxu --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 7e62266..a2c9ab6 100644 --- a/lib

[dpdk-dev] [PATCH v4] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-06 Thread lxu
--- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 7e62266..a2c9ab6 100644 --- a/lib/librte_eal/linuxapp/eal/eal

[dpdk-dev] [PATCH v3] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-06 Thread lxu
--- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 7e62266..3a218d0 100644 --- a/lib/librte_eal/linuxapp/eal/eal

[dpdk-dev] [PATCH v2] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-06 Thread lxu
--- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 7e62266..a591da3 100644 --- a/lib/librte_eal/linuxapp/eal/eal

[dpdk-dev] [PATCH] eal: map uio resources after hugepages when the base_virtaddr is configured.

2014-11-05 Thread lxu
--- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 7e62266..bc7ed3a 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c +++ b/lib/l

[dpdk-dev] reply?? The packages needed on CenOS

2013-06-24 Thread lxu
It's kernel bug. I got same message in Redhat 6.3 and 6.4. After install a custom 3.4 kernel, everything is fine. Ubuntu 12.04 with 3.2 kernel is fine too. -- -- ???: "dvr"; : 2013?6?24?(???) ??7:53 ???: "dev"; ??: [dpdk-dev] The packages needed on Ce

[dpdk-dev] Can the empty struct rte_eth_txmode be enhanced?

2013-06-12 Thread lxu
Great! Thanks for the quick feedback. -- Original -- From: "Olivier MATZ"; Date: Wed, Jun 12, 2013 05:17 PM To: "dev"; Cc: "lxu"; Subject: Re: [dpdk-dev] Can the empty struct rte_eth_txmode be enhanced? Hello, > Can we

[dpdk-dev] Can the empty struct rte_eth_txmode be enhanced?

2013-06-12 Thread lxu
Hello all,I'm trying to write a C++ DPDK example. Everything is fine until I tried to enable RSS feature. It wasn't work.After hardy works, I found it's because empty structure rte_eth_txmode. In gcc the size of rte_eth_txmode is 0. But in g++ it's 1. I known the empty structure is a gcc extensi

[dpdk-dev] What's about "sfp module setup not complete"

2013-06-12 Thread lxu
Finally I found it still a kernel issue. There is kernel 2.6.32 in Redhat 6.3 and 6.4. After I rebuild and install kernel 3.4.47 with default configuration, everything is fine. -- Original -- From: "lxu"; Date: Fri, May 31, 2013 00:16 AM

[dpdk-dev] What's about "sfp module setup not complete"

2013-05-31 Thread lxu
Hello, I'm testing DPDK 1.2.3r1 with Silicom PE210G2i9-T (82599EB) at Redhat 6.3 and 6.4. I had followed the quick start guide. I installed DPDK and I haven't had any problems, but when I try to run testpmd it appears: EAL: Error - exiting with code: 1 Cause: No probed ethernet devices - check t