[dpdk-dev] [PATCH v3] lib/table: fix wrong type of nht field

2016-06-21 Thread Michal Kobylinski
Signed-off-by: Michal Kobylinski Acked-by: Cristian Dumitrescu --- v3: - added the explanation v2: - removed changing from file: pipeline_routing_be.h - changed macro: RTE_TABLE_LPM_MAX_NEXT_HOP lib/librte_table/rte_table_lpm.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-)

[dpdk-dev] [PATCH v2] examples/netmap_compat: fix infinite loop

2016-04-27 Thread Michal Kobylinski
mport netmap compatibility example") Signed-off-by: Michal Kobylinski --- v2: - removed braces - changed return value on -1 examples/netmap_compat/lib/compat_netmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_

[dpdk-dev] [PATCH] examples/netmap_compat: fix infinite loop

2016-04-22 Thread Michal Kobylinski
mport netmap compatibility example") Signed-off-by: Michal Kobylinski --- examples/netmap_compat/lib/compat_netmap.c | 5 + 1 file changed, 5 insertions(+) diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_compat/lib/compat_netmap.c index bf1b418..8cb5

[dpdk-dev] [PATCH] mem: fix overflowed return value

2016-04-22 Thread Michal Kobylinski
as the return value of the function Fixes: 3097de6e6bfb ("mem: get physical address of any pointer") Signed-off-by: Michal Kobylinski --- lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memor

[dpdk-dev] [PATCH] cfgfile: fix integer overflow

2016-04-22 Thread Michal Kobylinski
, with the overflowed value used as an argument to a function Fixes: eaafbad419bf ("cfgfile: library to interpret config files") Signed-off-by: Michal Kobylinski --- lib/librte_cfgfile/rte_cfgfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_cfgfile/rte_cfgfi

[dpdk-dev] [PATCH] cfgfile: fix uninitialized scalar variable

2016-04-13 Thread Michal Kobylinski
CID 13323: Uninitialized scalar variable. Using uninitialized value cfg->num_sections when calling rte_cfgfile_close. Fixes: eaafbad419bf ("cfgfile: library to interpret config files") Signed-off-by: Michal Kobylinski --- lib/librte_cfgfile/rte_cfgfile.c | 1 + 1 file changed

[dpdk-dev] [PATCH 2/2] examples: update to use new rte_lpm_config for ipv4

2016-03-08 Thread Michal Kobylinski
Signed-off-by: Michal Kobylinski Acked-by: David Hunt --- examples/ip_fragmentation/main.c| 7 ++- examples/ip_reassembly/main.c | 7 ++- examples/l3fwd-power/main.c | 10 -- examples/l3fwd-vf/main.c

[dpdk-dev] [PATCH 1/2] lpm: added a new rte_lpm_config structure for ipv4

2016-03-08 Thread Michal Kobylinski
Signed-off-by: Michal Kobylinski Acked-by: David Hunt --- app/test/test_func_reentrancy.c| 9 +- app/test/test_lpm.c| 145 +++-- app/test/test_mp_secondary.c | 7 +- app/test/test_table_combined.c | 2 + app/test

[dpdk-dev] [PATCH 0/2] Added a new rte_lpm_config structure for IPv4.

2016-03-08 Thread Michal Kobylinski
A new rte_lpm_config structure is used so LPM library will allocate exactly the amount of memory which is necessary to hold application?s rules. Michal Kobylinski (2): lpm: added a new rte_lpm_config structure for ipv4 examples: update to use new rte_lpm_config structure for ipv4 app/test

[dpdk-dev] [PATCH 2/2] examples: update to use new lpm lib for ipv4

2016-03-08 Thread Michal Kobylinski
Signed-off-by: Michal Kobylinski Acked-by: David Hunt --- examples/ip_fragmentation/main.c| 16 ++-- examples/ip_reassembly/main.c | 15 +-- examples/l3fwd-power/main.c | 2 +- examples/l3fwd-vf/main.c

[dpdk-dev] [PATCH v3 1/2] lpm: extended ipv4 next_hop field

2016-03-08 Thread Michal Kobylinski
Signed-off-by: Michal Kobylinski Acked-by: David Hunt --- app/test/test_lpm.c| 122 ++-- doc/guides/rel_notes/release_16_04.rst |5 +- lib/librte_lpm/Makefile|2 +- lib/librte_lpm/rte_lpm.c | 1090 +--- lib

[dpdk-dev] [PATCH v3 0/2] Increased number of next hops for LPM IPv4

2016-03-08 Thread Michal Kobylinski
This patchset extended next_hop field from 8-bits to 24-bits in LPM library for IPv4. Added versioning symbols to functions and updated library and applications that have a dependency on LPM library. Michal Kobylinski (2): lpm: extend ip4 next_hop and add config structure examples: update

[dpdk-dev] [PATCH 2/2] examples: update to use new lpm lib for ip4

2016-01-29 Thread Michal Kobylinski
Update other applications to use new structures from LPM library for IPv4. Signed-off-by: Michal Kobylinski --- examples/ip_fragmentation/main.c| 23 ++- examples/ip_reassembly/main.c | 22 +++ examples/l3fwd-power/main.c

[dpdk-dev] [PATCH v2 1/2] lpm: extend ip4 next_hop and add config structure

2016-01-29 Thread Michal Kobylinski
and rte_lpm_tbl8_entry to one structure rte_lpm_tbl_entry. Signed-off-by: Michal Kobylinski --- app/test/test_func_reentrancy.c |9 +- app/test/test_lpm.c | 274 +--- app/test/test_mp_secondary.c |7 +- app/test/test_table_combined.c |1 + app/test

[dpdk-dev] [PATCH v2 0/2] Increase number of next hops for LPM IPv4

2016-01-29 Thread Michal Kobylinski
rules. Changed structures in LPM library: rte_lpm_tbl24_entry and rte_lpm_tbl8_entry to one structure rte_lpm_tbl_entry. Added versioning symbols to functions and updated library and applications that have a dependency on LPM library. Michal Kobylinski (2): lpm: extend ip4 next_hop and add

[dpdk-dev] [RFC PATCH] lpm: increase number of next hops for lpm (ipv4)

2015-09-08 Thread Michal Kobylinski
/write operations. Signed-off-by: Michal Kobylinski --- app/test/test_lpm.c | 75 + lib/librte_lpm/rte_lpm.c | 51 ++-- lib/librte_lpm/rte_lpm.h | 168 -- lib/librte_table/rte_table_lpm.c |6 +- 4 files change