[dpdk-dev] [PATCH v8 2/9] eal: memzone allocated by malloc

2015-07-14 Thread Sergio Gonzalez Monroy
for memory allocation while maintaining its ABI. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c| 289 +- lib/librte_eal

[dpdk-dev] [PATCH v8 1/9] eal: move librte_malloc to eal/common

2015-07-14 Thread Sergio Gonzalez Monroy
. Thus, memzones would allocate memory through malloc, allowing to free memzones. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 22 +- config/common_bsdapp| 9 +- config/common_linuxapp | 9

[dpdk-dev] [PATCH v8 0/9] Dynamic memzones

2015-07-14 Thread Sergio Gonzalez Monroy
all available memsegs to malloc heap at init - Update memzone/malloc unit tests v6 Acked-by: Konstantin Ananyev Sergio Gonzalez Monroy (9): eal: move librte_malloc to eal/common eal: memzone allocated by malloc app/test: update malloc/memzone unit tests config: rem

[dpdk-dev] [PATCH v7 9/9] doc: update malloc documentation

2015-07-03 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/env_abstraction_layer.rst | 220 +- doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 80952 bytes doc/guides/prog_guide/index.

[dpdk-dev] [PATCH v7 8/9] doc: announce ABI change of librte_malloc

2015-07-03 Thread Sergio Gonzalez Monroy
Announce the creation of dummy malloc library for 2.1 and removal of such library, now integrated in librte_eal, for 2.2 release. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides

[dpdk-dev] [PATCH v7 7/9] app/test: rte_memzone_free unit test

2015-07-03 Thread Sergio Gonzalez Monroy
Add new unit test for rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 82 +++-- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 6934eee

[dpdk-dev] [PATCH v7 6/9] eal: new rte_memzone_free

2015-07-03 Thread Sergio Gonzalez Monroy
is not used, so we also need to change how we look for the next memzone entry free. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 ++ lib/librte_eal/common/eal_common_memzone.c| 67 ++- lib/librte_eal/common/include

[dpdk-dev] [PATCH v7 5/9] eal: remove free_memseg and references to it

2015-07-03 Thread Sergio Gonzalez Monroy
Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/include/rte_eal_memconfig.h | 3 --- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v7 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-07-03 Thread Sergio Gonzalez Monroy
During initializaio malloc sets all available memory as part of the heaps. CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory block size to expand the heap. The option is not used/relevant anymore, so we remove it. Signed-off-by: Sergio Gonzalez Monroy --- config

[dpdk-dev] [PATCH v7 3/9] app/test: update malloc/memzone unit tests

2015-07-03 Thread Sergio Gonzalez Monroy
, to calculate maximum free block size available. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_malloc.c | 86 -- app/test/test_memzone.c | 440 2 files changed, 35 insertions(+), 491 deletions(-) diff --git a/app/test/test_malloc.c b/app

[dpdk-dev] [PATCH v7 2/9] eal: memzone allocated by malloc

2015-07-03 Thread Sergio Gonzalez Monroy
for memory allocation while maintaining its ABI. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c| 274 ++ lib/librte_eal

[dpdk-dev] [PATCH v7 1/9] eal: move librte_malloc to eal/common

2015-07-03 Thread Sergio Gonzalez Monroy
. Thus, memzones would allocate memory through malloc, allowing to free memzones. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 22 +- config/common_bsdapp| 9 +- config/common_linuxapp | 9

[dpdk-dev] [PATCH v7 0/9] Dynamic memzones

2015-07-03 Thread Sergio Gonzalez Monroy
sts Sergio Gonzalez Monroy (9): eal: move librte_malloc to eal/common eal: memzone allocated by malloc app/test: update malloc/memzone unit tests config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE eal: remove free_memseg and references to it eal: new rte_memzone_free app/test: rte_memzone_free u

[dpdk-dev] [PATCH v6 9/9] doc: update malloc documentation

2015-06-26 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/env_abstraction_layer.rst | 220 +- doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 80952 bytes doc/guides/prog_guide/index.

[dpdk-dev] [PATCH v6 8/9] doc: announce ABI change of librte_malloc

2015-06-26 Thread Sergio Gonzalez Monroy
Announce the creation of dummy malloc library for 2.1 and removal of such library, now integrated in librte_eal, for 2.2 release. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides

[dpdk-dev] [PATCH v6 7/9] app/test: rte_memzone_free unit test

2015-06-26 Thread Sergio Gonzalez Monroy
Add new unit test for rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 82 +++-- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 6934eee

[dpdk-dev] [PATCH v6 6/9] eal: new rte_memzone_free

2015-06-26 Thread Sergio Gonzalez Monroy
is not used, so we also need to change how we look for the next memzone entry free. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 ++ lib/librte_eal/common/eal_common_memzone.c| 67 ++- lib/librte_eal/common/include

[dpdk-dev] [PATCH v6 5/9] eal: remove free_memseg and references to it

2015-06-26 Thread Sergio Gonzalez Monroy
Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/include/rte_eal_memconfig.h | 3 --- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v6 3/9] app/test: update malloc/memzone unit tests

2015-06-26 Thread Sergio Gonzalez Monroy
, to calculate maximum free block size available. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_malloc.c | 86 -- app/test/test_memzone.c | 440 2 files changed, 35 insertions(+), 491 deletions(-) diff --git a/app/test/test_malloc.c b/app

[dpdk-dev] [PATCH v6 2/9] eal: memzone allocated by malloc

2015-06-26 Thread Sergio Gonzalez Monroy
for memory allocation while maintaining its ABI. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c| 274 ++ lib/librte_eal

[dpdk-dev] [PATCH v6 1/9] eal: move librte_malloc to eal/common

2015-06-26 Thread Sergio Gonzalez Monroy
memzones. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 9 +- config/common_bsdapp| 9 +- config/common_linuxapp | 9 +- drivers/net/af_packet/Makefile | 1 - drivers/net

[dpdk-dev] [PATCH v6 0/9] Dynamic memzones

2015-06-26 Thread Sergio Gonzalez Monroy
loc - Add deprecation notice - Rework some of the code - Doc update - checkpatch v2: - New rte_memzone_free - Support memzone len = 0 - Add all available memsegs to malloc heap at init - Update memzone/malloc unit tests Sergio Gonzalez Monroy (9): eal: move librte_malloc to eal/common

[dpdk-dev] [PATCH v5 9/9] doc: update malloc documentation

2015-06-26 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/env_abstraction_layer.rst | 220 +- doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 80952 bytes doc/guides/prog_guide/index.

[dpdk-dev] [PATCH v5 8/9] doc: announce ABI change of librte_malloc

2015-06-26 Thread Sergio Gonzalez Monroy
Announce the creation of dummy malloc library for 2.1 and removal of such library, now integrated in librte_eal, for 2.2 release. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides

[dpdk-dev] [PATCH v5 7/9] app/test: update unit test with rte_memzone_free

2015-06-26 Thread Sergio Gonzalez Monroy
Update memzone unit test for the new rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 80 + 1 file changed, 80 insertions(+) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 6934eee

[dpdk-dev] [PATCH v5 6/9] eal: new rte_memzone_free

2015-06-26 Thread Sergio Gonzalez Monroy
is not used, so we also need to change how we look for the next memzone entry free. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 ++ lib/librte_eal/common/eal_common_memzone.c| 68 ++- lib/librte_eal/common/include

[dpdk-dev] [PATCH v5 5/9] eal: remove free_memseg and references to it

2015-06-26 Thread Sergio Gonzalez Monroy
Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/include/rte_eal_memconfig.h | 3 --- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v5 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-06-26 Thread Sergio Gonzalez Monroy
During initializaio malloc sets all available memory as part of the heaps. CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory block size to expand the heap. The option is not used/relevant anymore, so we remove it. Signed-off-by: Sergio Gonzalez Monroy --- config

[dpdk-dev] [PATCH v5 3/9] app/test: update malloc/memzone unit tests

2015-06-26 Thread Sergio Gonzalez Monroy
, to calculate maximum free block size available. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_malloc.c | 86 -- app/test/test_memzone.c | 440 2 files changed, 35 insertions(+), 491 deletions(-) diff --git a/app/test/test_malloc.c b/app

[dpdk-dev] [PATCH v5 2/9] eal: memzone allocated by malloc

2015-06-26 Thread Sergio Gonzalez Monroy
for memory allocation while maintaining its ABI. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c| 274 ++ lib/librte_eal

[dpdk-dev] [PATCH v5 1/9] eal: move librte_malloc to eal/common

2015-06-26 Thread Sergio Gonzalez Monroy
memzones. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 9 +- config/common_bsdapp| 9 +- config/common_linuxapp | 9 +- drivers/net/af_packet/Makefile | 1 - drivers/net

[dpdk-dev] [PATCH v5 0/9] Dynamic memzones

2015-06-26 Thread Sergio Gonzalez Monroy
ome of the code - Doc update - checkpatch v2: - New rte_memzone_free - Support memzone len = 0 - Add all available memsegs to malloc heap at init - Update memzone/malloc unit tests Sergio Gonzalez Monroy (9): eal: move librte_malloc to eal/common eal: memzone allocated by malloc app/t

[dpdk-dev] [PATCH v4 9/9] doc: update malloc documentation

2015-06-25 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/env_abstraction_layer.rst | 220 +- doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 80952 bytes doc/guides/prog_guide/index.

[dpdk-dev] [PATCH v4 8/9] doc: announce ABI change of librte_malloc

2015-06-25 Thread Sergio Gonzalez Monroy
Announce the creation of dummy malloc library for 2.1 and removal of such library, now integrated in librte_eal, for 2.2 release. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides

[dpdk-dev] [PATCH v4 7/9] app/test: update unit test with rte_memzone_free

2015-06-25 Thread Sergio Gonzalez Monroy
Update memzone unit test for the new rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 53 + 1 file changed, 53 insertions(+) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 6934eee

[dpdk-dev] [PATCH v4 6/9] eal: new rte_memzone_free

2015-06-25 Thread Sergio Gonzalez Monroy
is not used, so we also need to change how we look for the next memzone entry free. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 +++ lib/librte_eal/common/eal_common_memzone.c| 55 +-- lib/librte_eal/common/include

[dpdk-dev] [PATCH v4 5/9] eal: remove free_memseg and references to it

2015-06-25 Thread Sergio Gonzalez Monroy
Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/include/rte_eal_memconfig.h | 3 --- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v4 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-06-25 Thread Sergio Gonzalez Monroy
During initializaio malloc sets all available memory as part of the heaps. CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory block size to expand the heap. The option is not used/relevant anymore, so we remove it. Signed-off-by: Sergio Gonzalez Monroy --- config

[dpdk-dev] [PATCH v4 3/9] app/test: update malloc/memzone unit tests

2015-06-25 Thread Sergio Gonzalez Monroy
, to calculate maximum free block size available. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_malloc.c | 86 -- app/test/test_memzone.c | 440 2 files changed, 35 insertions(+), 491 deletions(-) diff --git a/app/test/test_malloc.c b/app

[dpdk-dev] [PATCH v4 2/9] eal: memzone allocated by malloc

2015-06-25 Thread Sergio Gonzalez Monroy
for memory allocation while maintaining its ABI. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c| 274 ++ lib/librte_eal

[dpdk-dev] [PATCH v4 1/9] eal: move librte_malloc to eal/common

2015-06-25 Thread Sergio Gonzalez Monroy
memzones. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 9 +- config/common_bsdapp| 9 +- config/common_linuxapp | 9 +- drivers/net/af_packet/Makefile | 1 - drivers/net

[dpdk-dev] [PATCH v4 0/9] Dynamic memzone

2015-06-25 Thread Sergio Gonzalez Monroy
ree - Support memzone len = 0 - Add all available memsegs to malloc heap at init - Update memzone/malloc unit tests Sergio Gonzalez Monroy (9): eal: move librte_malloc to eal/common eal: memzone allocated by malloc app/test: update malloc/memzone unit tests config: rem

[dpdk-dev] [PATCH v3 9/9] doc: update malloc documentation

2015-06-19 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/env_abstraction_layer.rst | 220 +- doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 80952 bytes doc/guides/prog_guide/index.

[dpdk-dev] [PATCH v3 8/9] doc: announce ABI change of librte_malloc

2015-06-19 Thread Sergio Gonzalez Monroy
Announce the creation of dummy malloc library for 2.1 and removal of such library, now integrated in librte_eal, for 2.2 release. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides

[dpdk-dev] [PATCH v3 7/9] app/test: update unit test with rte_memzone_free

2015-06-19 Thread Sergio Gonzalez Monroy
Update memzone unit test for the new rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 53 + 1 file changed, 53 insertions(+) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 6934eee

[dpdk-dev] [PATCH v3 6/9] eal: new rte_memzone_free

2015-06-19 Thread Sergio Gonzalez Monroy
is not used, so we also need to change how we look for the next memzone entry free. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 +++ lib/librte_eal/common/eal_common_memzone.c| 55 +-- lib/librte_eal/common/include

[dpdk-dev] [PATCH v3 5/9] eal: remove free_memseg and references to it

2015-06-19 Thread Sergio Gonzalez Monroy
Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/include/rte_eal_memconfig.h | 3 --- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v3 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-06-19 Thread Sergio Gonzalez Monroy
During initializaio malloc sets all available memory as part of the heaps. CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory block size to expand the heap. The option is not used/relevant anymore, so we remove it. Signed-off-by: Sergio Gonzalez Monroy --- config

[dpdk-dev] [PATCH v3 3/9] app/test: update malloc/memzone unit tests

2015-06-19 Thread Sergio Gonzalez Monroy
, to calculate maximum free block size available. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_malloc.c | 86 -- app/test/test_memzone.c | 440 2 files changed, 35 insertions(+), 491 deletions(-) diff --git a/app/test/test_malloc.c b/app

[dpdk-dev] [PATCH v3 2/9] eal: memzone allocated by malloc

2015-06-19 Thread Sergio Gonzalez Monroy
for memory allocation while maintaining its ABI. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c| 274 ++ lib/librte_eal

[dpdk-dev] [PATCH v3 1/9] eal: move librte_malloc to eal/common

2015-06-19 Thread Sergio Gonzalez Monroy
memzones. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 9 +- config/common_bsdapp| 9 +- config/common_linuxapp | 9 +- drivers/net/af_packet/Makefile | 1 - drivers/net

[dpdk-dev] [PATCH v3 0/9] Dynamic memzone

2015-06-19 Thread Sergio Gonzalez Monroy
all available memsegs to malloc heap at init - Update memzone/malloc unit tests Sergio Gonzalez Monroy (9): eal: move librte_malloc to eal/common eal: memzone allocated by malloc app/test: update malloc/memzone unit tests config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE eal: remove free_mem

[dpdk-dev] [PATCH] ivshmem: fix segmentation fault in corner case

2015-06-18 Thread Sergio Gonzalez Monroy
Depending on the configured segments it is possible to hit a segmentation fault as a result of decrementing an unsigned index with value 0. To avoid it, exit the loop if the index has value 0. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_ivshmem/rte_ivshmem.c | 2 ++ 1 file changed, 2

[dpdk-dev] [PATCH] ixgbevf: fix incorrect RX function selection

2015-06-12 Thread Sergio Gonzalez Monroy
. - when checksum is enabled, incorrect vector RX function is selected. To solve above issues, change the VF RX function selection logic to mimic PF side. Signed-off-by: Sergio Gonzalez Monroy --- drivers/net/ixgbe/ixgbe_ethdev.c | 9 + drivers/net/ixgbe/ixgbe_rxtx.c | 11 ++- 2

[dpdk-dev] [PATCH] mk: fix combined library building

2015-06-09 Thread Sergio Gonzalez Monroy
The combined lib was being created after building the lib root dir. With the new directory hierarchy, it should be created after the drivers root dir instead. Fixes: 980ed498eb1dd0 ("drivers: create new directory") Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.sdkbuild.mk | 2

[dpdk-dev] [PATCH v2 7/7] app/test: update unit test with rte_memzone_free

2015-06-06 Thread Sergio Gonzalez Monroy
Update memzone unit test for the new rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 49 + 1 file changed, 49 insertions(+) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index c5e4872

[dpdk-dev] [PATCH v2 6/7] eal: new rte_memzone_free

2015-06-06 Thread Sergio Gonzalez Monroy
is not used, so we also need to change how we look for the next memzone entry free. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 +++ lib/librte_eal/common/eal_common_memzone.c| 50 +-- lib/librte_eal/common/include

[dpdk-dev] [PATCH v2 5/7] eal: remove setup of free_memseg in ivshmem

2015-06-06 Thread Sergio Gonzalez Monroy
Remove code setting up free_memseg as it is not used/relevant anymore. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/linuxapp/eal/eal_ivshmem.c | 9 - 1 file changed, 9 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_ivshmem.c b/lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v2 3/7] app/test: update malloc/memzone unit tests

2015-06-06 Thread Sergio Gonzalez Monroy
, to calculate maximum free block size available. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_malloc.c | 86 -- app/test/test_memzone.c | 436 2 files changed, 35 insertions(+), 487 deletions(-) diff --git a/app/test/test_malloc.c b/app

[dpdk-dev] [PATCH v2 1/7] eal: move librte_malloc to eal/common

2015-06-06 Thread Sergio Gonzalez Monroy
This patch moves the malloc library inside the eal. This is the first step towards using malloc to allocate memory directly from memsegs. Thus, memzones would allocate memory through malloc, allowing unreserve/free memzones. Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdapp

[dpdk-dev] [PATCH v2 0/7] dynamic memzone

2015-06-06 Thread Sergio Gonzalez Monroy
ode gives plenty of errors Sergio Gonzalez Monroy (7): eal: move librte_malloc to eal/common eal: memzone allocated by malloc app/test: update malloc/memzone unit tests config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE eal: remove setup of free_memseg in ivshmem eal: new rte_memzone_free

[dpdk-dev] [RFC PATCH 2/2] eal: memzone allocated by malloc

2015-05-08 Thread Sergio Gonzalez Monroy
internally for memoy allocation while maintaining its ABI. The only exception is the reserving a memzone with len=0 is not supported anymore. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c | 233 ++-- lib/librte_eal/common/include

[dpdk-dev] [RFC PATCH 1/2] eal: move librte_malloc to eal/common

2015-05-08 Thread Sergio Gonzalez Monroy
This patch moves the malloc library inside the eal. This is the first step towards using malloc to allocate memory directly from memsegs. Thus, memzones would allocate memory through malloc, allowing unreserve/free memzones. Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdapp

[dpdk-dev] [RFC PATCH 0/2] dynamic memzones

2015-05-08 Thread Sergio Gonzalez Monroy
ion). - Improve malloc algorithm? ie. jemalloc (or any other). Any comments/toughts and/or different approaches are welcome. Sergio Gonzalez Monroy (2): eal: move librte_malloc to eal/common eal: memzone allocated by malloc config/common_bsdapp| 9 +- config/common_linux

[dpdk-dev] [PATCH 3/3] mk: update app linking flags against shared libs

2015-04-15 Thread Sergio Gonzalez Monroy
Use flag --as-needed when linking against shared libs, exluding eal, malloc, mempool and ring as explained in: 7cee5f6b4a9b ("lib: set LDLIBS for each library") Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.app.mk | 36 1 file changed, 20

[dpdk-dev] [PATCH 2/3] mk: use LDLIBS when linking shared libraries

2015-04-15 Thread Sergio Gonzalez Monroy
Set proper DT_NEEDED entries for shared libraries by explicitly linking against its dependent libraries (LDLIBS). Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.lib.mk | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 0d7482d..5d0988f

[dpdk-dev] [PATCH 1/3] lib: set LDLIBS for each library

2015-04-15 Thread Sergio Gonzalez Monroy
not directly use mempool (therefore no DT_NEEDED entry). In such case, the application will fail to start as eal does not have a DT_NEEDED entry for mempool either. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_acl/Makefile | 2 ++ lib/librte_cfgfile/Makefile | 2

[dpdk-dev] [PATCH 0/3] Add DT_NEEDED entries to shared libs

2015-04-15 Thread Sergio Gonzalez Monroy
. More on this can be read in: http://dpdk.org/ml/archives/dev/2015-January/011927.html Sergio Gonzalez Monroy (3): lib: set LDLIBS for each library mk: use LDLIBS when linking shared libraries mk: update app linking flags against shared libs lib/librte_acl/Makefile | 2

[dpdk-dev] [PATCH v3 5/5] mk: update LDLIBS for app building

2015-04-08 Thread Sergio Gonzalez Monroy
. Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.app.mk | 54 ++ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index e8630b6..2d6b2ca 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -59,7 +59,30

[dpdk-dev] [PATCH v3 4/5] mk: use LDLIBS when linking shared libraries

2015-04-08 Thread Sergio Gonzalez Monroy
is enable (D). Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.lib.mk | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index d96101a..603badf 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -62,16 +62,19 @@ build: _postbuild exe2cmd

[dpdk-dev] [PATCH v3 3/5] lib: set LDLIBS for each library

2015-04-08 Thread Sergio Gonzalez Monroy
-by: Sergio Gonzalez Monroy --- lib/librte_acl/Makefile | 2 ++ lib/librte_cfgfile/Makefile | 2 ++ lib/librte_cmdline/Makefile | 2 ++ lib/librte_distributor/Makefile | 2 ++ lib/librte_eal/bsdapp/eal/Makefile | 2 ++ lib/librte_eal/linuxapp/eal/Makefile | 2 ++ lib

[dpdk-dev] [PATCH v3 2/5] mk: always generate combined lib linker script

2015-04-08 Thread Sergio Gonzalez Monroy
After the patch, building DPDK will always generate a linker script (name use is based on CONFIG_RTE_LIBNAME config option) that behaves as a combined library when linking against it. Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.combinedlib.mk | 89

[dpdk-dev] [PATCH v3 1/5] mk: remove combined library and related options

2015-04-08 Thread Sergio Gonzalez Monroy
removes CONFIG_RTE_BUILD_COMBINE_LIB build config option and removes the makefiles associated with building a combined library. The CONFIG_RTE_LIBNAME config option is kept as it will be use to always generate a linker script that acts as a single combined library. Signed-off-by: Sergio Gonzalez Monroy

[dpdk-dev] [PATCH v3 0/5] Enhance build process

2015-04-08 Thread Sergio Gonzalez Monroy
between eal, malloc, mempool and ring libraries. Instead, add DT_NEEDED entries for all libraries but eal, then for application linking, always link against these libraries by preceding them with --no-as-needed flag. Sergio Gonzalez Monroy (5): mk: remove combined library and related

[dpdk-dev] [PATCH] igb: handle VF LPE mailbox message

2015-03-18 Thread Sergio Gonzalez Monroy
This patch adds the handle function for the LPE mailbox message (VF to PF) to set maximum packet size, which can be used to enable jumbo frame support. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_pmd_e1000/igb_pf.c | 28 1 file changed, 28 insertions

[dpdk-dev] [PATCH v2 4/4] mk: update LDLIBS for app building

2015-03-12 Thread Sergio Gonzalez Monroy
. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_jobstats/Makefile | 2 ++ lib/librte_pmd_fm10k/Makefile | 2 ++ lib/librte_pmd_mlx4/Makefile | 2 ++ lib/librte_pmd_null/Makefile | 2 ++ lib/librte_reorder/Makefile | 2 ++ mk/rte.app.mk | 57

[dpdk-dev] [PATCH v2 3/4] mk: Use LDLIBS when linking shared libraries

2015-03-12 Thread Sergio Gonzalez Monroy
is enable (D). Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.lib.mk | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index d96101a..603badf 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -62,16 +62,19 @@ build: _postbuild exe2cmd

[dpdk-dev] [PATCH v2 2/4] lib: Set LDLIBS for each library

2015-03-12 Thread Sergio Gonzalez Monroy
will not have proper DT_NEEDED entries and we will have to force link against them by preceding such libraries with --no-as-needed flag. This patch sets LDLIBS variable for each library but eal and updates DEPDIRS of some libraries. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_acl/Makefile

[dpdk-dev] [PATCH v2 1/4] mk: Remove combined library and related options

2015-03-12 Thread Sergio Gonzalez Monroy
Remove CONFIG_RTE_BUILD_COMBINE_LIBS and CONFIG_RTE_LIBNAME. Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdapp| 6 -- config/common_linuxapp | 6 -- config/defconfig_ppc_64-power8-linuxapp-gcc | 2 - lib/Makefile

[dpdk-dev] [PATCH v2 0/4] Improve build process

2015-03-12 Thread Sergio Gonzalez Monroy
these libraries by preceding them with --no-as-needed flag. Sergio Gonzalez Monroy (4): mk: Remove combined library and related options lib: Set LDLIBS for each library mk: Use LDLIBS when linking shared libraries mk: update LDLIBS for app building config/common_bsdapp

[dpdk-dev] [PATCH 3/3] examples/packet_ordering: move creation of reorder buffer

2015-02-20 Thread Sergio Gonzalez Monroy
There was no error checking after calling rte_reorder_create. Move the creation of the reorder buffer before launching threads in case of memory error. Signed-off-by: Sergio Gonzalez Monroy --- examples/packet_ordering/main.c | 37 + 1 file changed, 25

[dpdk-dev] [PATCH 2/3] mbuf: fix a couple of doxygen comments

2015-02-20 Thread Sergio Gonzalez Monroy
Fix a couple of doxygen comments in mbuf structure: - seqn had no doxygen syntax. - usr was not generating proper link to function. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_mbuf/rte_mbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_mbuf

[dpdk-dev] [PATCH 1/3] doc: add librte_reorder to doxygen conf

2015-02-20 Thread Sergio Gonzalez Monroy
Add missing reorder lirbary directory to doxygen configuration. Signed-off-by: Sergio Gonzalez Monroy --- doc/api/doxy-api.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/doxy-api.conf b/doc/api/doxy-api.conf index 27c782c..86298b7 100644 --- a/doc/api/doxy-api.conf +++ b/doc

[dpdk-dev] [PATCH 0/3] Misc fixes

2015-02-20 Thread Sergio Gonzalez Monroy
threads. Sergio Gonzalez Monroy (3): doc: add librte_reorder to doxygen conf mbuf: fix a couple of doxygen comments examples/packet_ordering: move creation of reorder buffer doc/api/doxy-api.conf | 1 + examples/packet_ordering/main.c | 37

[dpdk-dev] [PATCH v5 6/6] MAINTAINERS: add and claim reorder

2015-02-18 Thread Sergio Gonzalez Monroy
Add files related to reorder library and claim it. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e7a425b..d7d672c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -264,6 +264,14 @@ F: app/test

[dpdk-dev] [PATCH v5 5/6] doc: new packet ordering app description

2015-02-18 Thread Sergio Gonzalez Monroy
This patch describes how to build and run he new packet ordering sample application that exercises the reorder library. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/packet_ordering.rst | 102

[dpdk-dev] [PATCH v5 4/6] doc: new reorder library description

2015-02-18 Thread Sergio Gonzalez Monroy
This patch introduces a new section in the programmers guide describing the reorder library. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/index.rst | 1 + doc/guides/prog_guide/reorder_lib.rst | 115 ++ 2 files changed, 116 insertions

[dpdk-dev] [PATCH v5 3/6] examples: new sample app packet_ordering

2015-02-18 Thread Sergio Gonzalez Monroy
and enqueue them in ring. * Workers dequeue mbufs from ring, do some 'work' and enqueue mbufs in ring. * TX dequeue mbufs from ring, inserts them in reorder buffer, drains mbufs from reorder and sends them to the driver. Signed-off-by: Reshma Pattan Signed-off-by: Sergio Gonzalez Monroy

[dpdk-dev] [PATCH v5 2/6] app: New reorder unit test

2015-02-18 Thread Sergio Gonzalez Monroy
Adding new reorder unit test for the test app. The command to run the unit test from the test shell is: reorder_autotest Signed-off-by: Reshma Pattan Signed-off-by: Sergio Gonzalez Monroy --- app/test/Makefile | 2 + app/test/test_reorder.c | 393

[dpdk-dev] [PATCH v5 0/6] New Reorder Library

2015-02-18 Thread Sergio Gonzalez Monroy
- use malloc instead of memzone to allocate memory - modify create and init implementation, init takes a reorder buffer as input and create reserves memory and call init. - update unit tests Sergio Gonzalez Monroy (6): reorder: new reorder library app: New reorder unit test examples

[dpdk-dev] [PATCH v2 2/2] Remove RTE_MBUF_REFCNT references

2015-02-18 Thread Sergio Gonzalez Monroy
This patch removes all references to RTE_MBUF_REFCNT, setting the refcnt field in the mbuf struct permanently. Signed-off-by: Sergio Gonzalez Monroy Acked-by: Olivier Matz --- app/test/test_link_bonding.c| 15 --- app/test/test_mbuf.c| 17

[dpdk-dev] [PATCH v2 1/2] mbuf: Introduce IND_ATTACHED_MBUF flag

2015-02-18 Thread Sergio Gonzalez Monroy
permanently. The patch also modifies the vhost example as it was using the RTE_MBUF_INDERECT macro to detect if it was an mbuf with external buffer. Signed-off-by: Sergio Gonzalez Monroy Acked-by: Olivier Matz --- v2: - Add missing parenthesis to RTE_MBUF_INDIRECT macro examples/vhost/main.c

[dpdk-dev] [PATCH v2 0/2] Removal of RTE_MBUF_REFCNT

2015-02-18 Thread Sergio Gonzalez Monroy
to RTE_MBUF_INDIRECT macro Sergio Gonzalez Monroy (2): mbuf: Introduce IND_ATTACHED_MBUF flag Remove RTE_MBUF_REFCNT references app/test/test_link_bonding.c| 15 --- app/test/test_mbuf.c| 17 +++-- config/common_bsdapp| 1

[dpdk-dev] [PATCH 2/2] Remove RTE_MBUF_REFCNT references

2015-02-16 Thread Sergio Gonzalez Monroy
This patch removes all references to RTE_MBUF_REFCNT, setting the refcnt field in the mbuf struct permanently. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_link_bonding.c| 15 --- app/test/test_mbuf.c| 17 - config

[dpdk-dev] [PATCH 1/2] mbuf: Introduce IND_ATTACHED_MBUF flag

2015-02-16 Thread Sergio Gonzalez Monroy
permanently. The patch also modifies the vhost example as it was using the RTE_MBUF_INDERECT macro to detect if it was an mbuf with external buffer. Signed-off-by: Sergio Gonzalez Monroy --- examples/vhost/main.c | 6 -- lib/librte_mbuf/rte_mbuf.h | 15 +-- 2 files changed, 13

[dpdk-dev] [PATCH 0/2] Removal of RTE_MBUF_REFCNT

2015-02-16 Thread Sergio Gonzalez Monroy
buffer is the same as freeing a non attached mbuf. The flag is set during attach and clear on detach. So in the case of vhost zero copy where we have mbufs with external buffers, by default we just free the mbuf and it is up to the user to deal with the external buffer. Sergio Gonzalez Monroy (2

[dpdk-dev] [PATCH] eal: fix fscanf format mismatch

2015-02-12 Thread Sergio Gonzalez Monroy
Variables are unsigned int but format scans for signed int. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH] eal: add rte_eal_iopl_init to version map

2015-02-12 Thread Sergio Gonzalez Monroy
Building shared libraries and using virtio PMD results in undefined reference to 'rte_eal_iopl_init'. Add missing function to eal version map. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1

[dpdk-dev] [PATCH] eal: add rte_eal_iopl_init to version map

2015-02-11 Thread Sergio Gonzalez Monroy
Common rte_eal_iopl_init function is missing from eal version map. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal

[dpdk-dev] [PATCH v4 5/5] doc: new packet ordering app description

2015-02-11 Thread Sergio Gonzalez Monroy
This patch describes how to build and run he new packet ordering sample application that exercises the reorder library. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/packet_ordering.rst | 102

<    1   2   3   4   >