[dpdk-dev] [PATCH] maintainers: update testpmd maintainers

2016-11-23 Thread Wei Dai
add Jingjing Wu and Wei Dai as new maintainers of test-pmd. Signed-off-by: Wei Dai --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index d6bb8f8..8070ed6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -614,7 +614,8 @@ F: app/test

[dpdk-dev] [PATCH v3] eal/linuxapp: fix return value check of mknod()

2016-11-17 Thread Wei Dai
In function pci_mknod_uio_dev() in lib/librte_eal/eal/eal_pci_uio.c, The return value of mknod() is ret, not f got by fopen(). So the value of ret should be checked for mknod(). Fixes: f7f97c16048e ("pci: add option --create-uio-dev to run without hotplug") Signed-off-by: Wei D

[dpdk-dev] [PATCH v2] eal/linuxapp: fix return value check of mknod()

2016-11-16 Thread Wei Dai
In function pci_mknod_uio_dev() in lib/librte_eal/eal/eal_pci_uio.c, The return value of mknod() is ret, not f got by fopen(). So the value of ret should be checked for mknod(). Fixes: 67c536bdad93 ("pci: move uio mapping in a dedicated file") Signed-off-by: Wei Dai --- fix my local g

[dpdk-dev] [PATCH] lpm: fix freeing memory

2016-11-03 Thread Wei Dai
re for IPv4") Signed-off-by: Morten Br?rup Signed-off-by: Wei Dai --- lib/librte_lpm/rte_lpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index ec67765..8c15c4c 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c

[dpdk-dev] [PATCH] mempool: fix search of maximum contiguous pages

2016-10-13 Thread Wei Dai
paddr[i] + pg_sz always points to the start physical address of the 2nd page after pddr[i], so only up to 2 pages can be combinded to be used. With this revision, more than 2 pages can be used. Fixes: 84121f197187 ("mempool: store memory chunks in a list") Signed-off-by: Wei Dai

[dpdk-dev] [PATCH] ethdev: fix statistics description

2016-08-26 Thread Wei Dai
Add comments to describe that not all statistics fields in struct rte_eth_stats are supported by any type of network interface card. If any statistics field is not supported, its value is 0. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- lib/librte_ether/rt

[dpdk-dev] [PATCH v4 3/3] lpm: remove redundant check when adding lpm rule

2016-08-08 Thread Wei Dai
epth > 24. Signed-off-by: Wei Dai Acked-by: Bruce Richardson --- lib/librte_lpm/rte_lpm.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 24fec4b..ec67765 100644 --- a/lib/librte_lpm/rte_lpm

[dpdk-dev] [PATCH v4 2/3] app/test: add a case to verify lpm tlb8 recycle

2016-08-08 Thread Wei Dai
As a bug-fix for lpm tlb8 recycle is introduced, add a test case to verify tlb8 group is correctly freed when it only includes a rule with depth=24. Signed-off-by: Wei Dai Acked-by: Bruce Richardson --- app/test/test_lpm.c | 80 - 1 file

[dpdk-dev] [PATCH v4 1/3] lpm: fix freeing unused sub-table on rule delete

2016-08-08 Thread Wei Dai
When all rules with depth > 24 are deleted in a same sub-table (tlb8 group) and only a rule with depth <=24 is left in it, this sub-table (tlb8 group) should be recycled. Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Fixes: af75078fece3 ("first public release"

[dpdk-dev] [PATCH v3 3/3] lpm: remove redundant check when adding lpm rule

2016-08-03 Thread Wei Dai
epth > 24. Signed-off-by: Wei Dai --- lib/librte_lpm/rte_lpm.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 24fec4b..ec67765 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.

[dpdk-dev] [PATCH v3 2/3] app/test: add a case to verify lpm tlb8 recycle

2016-08-03 Thread Wei Dai
As a bug-fix for lpm tlb8 recycle is introduced, add a test case to verify tlb8 group is correctly freed when it only includes a rule with depth=24. Signed-off-by: Wei Dai --- app/test/test_lpm.c | 80 - 1 file changed, 79 insertions(+), 1

[dpdk-dev] [PATCH v3 1/3] lpm: fix freeing unused sub-table on rule delete

2016-08-03 Thread Wei Dai
When all rules with depth > 24 are deleted in a same sub-table (tlb8 group) and only a rule with depth <=24 is left in it, this sub-table (tlb8 group) should be recycled. Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Fixes: af75078fece3 ("first public release"

[dpdk-dev] [PATCH v2] lpm: remove redundant check when adding lpm rule

2016-08-02 Thread Wei Dai
24. Signed-off-by: Wei Dai --- lib/librte_lpm/rte_lpm.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 24fec4b..ec67765 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -93

[dpdk-dev] [PATCH] lpm: remove redundant check when adding lpm rule

2016-08-01 Thread Wei Dai
24. Signed-off-by: Wei Dai --- lib/librte_lpm/rte_lpm.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 24fec4b..5bdc23f 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -107

[dpdk-dev] [PATCH 2/2] app/test: add a case to verify lpm tlb8 recycle

2016-08-01 Thread Wei Dai
As a bug-fix for lpm tlb8 recycle is introduced, add a test case to verify tlb8 group is correctly freed when it only includes a rule with depth=24. Signed-off-by: Wei Dai --- app/test/test_lpm.c | 81 - 1 file changed, 80 insertions(+), 1

[dpdk-dev] [PATCH 1/2] lpm: fix tlb8 only not freed for depth=24

2016-08-01 Thread Wei Dai
When all rules with depth > 24 are deleted in a same tlb8 group and only leave a rule with depth <= 24 in this group, the tlb8 group should be recycled. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- lib/librte_lpm/rte_lpm.c | 4 ++-- 1 file changed, 2

[dpdk-dev] [PATCH v3 4/4] eal: fix end character check in --lcores argument

2016-07-27 Thread Wei Dai
nment") Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 1a1bab3..f443a61 100644 --- a/lib/librte_eal/common/eal_common_optio

[dpdk-dev] [PATCH v3 3/4] eal: fix tail blank check in --lcores argument

2016-07-27 Thread Wei Dai
cores for cpu assignment") Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 217d08b..1a1bab3 100644 --- a/lib/librte_

[dpdk-dev] [PATCH v3 2/4] eal: fix parsing of eal option --lcores

2016-07-27 Thread Wei Dai
cores for cpu assignment") Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index c5bf98c..217d08b 100644

[dpdk-dev] [PATCH v3 1/4] eal: remove redundant codes to parse --lcores

2016-07-27 Thread Wei Dai
local variable i is not referred by other codes in the function eal_parse_lcores( ), so it can be removed. Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 4 1 file changed, 4 deletions(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal

[dpdk-dev] [PATCH v2 2/2] eal: fix parsing of eal option --lcores

2016-07-26 Thread Wei Dai
cores for cpu assignment") Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index c5bf98c..217d08b 100644

[dpdk-dev] [PATCH v2 1/2] eal: remove redundant codes to parse --lcores

2016-07-26 Thread Wei Dai
local variable i is not referred by other codes in the function eal_parse_lcores( ), so it can be removed. Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 4 1 file changed, 4 deletions(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal

[dpdk-dev] [PATCH] eal: fix parsing of argument of option --lcores

2016-07-21 Thread Wei Dai
The '-' in lcores set overrides cpu set of following lcore set in the argument of EAL option --lcores. Fixes: 53e54bf81700 ("eal: new option --lcores for cpu assignment") Signed-off-by: Wei Dai --- lib/librte_eal/common/eal_common_options.c | 12 1 file changed, 12