[dpdk-dev] [PATCH v3 0/5] New Reorder Library

2015-02-06 Thread Sergio Gonzalez Monroy
implementation, init takes a reorder buffer as input and create reserves memory and call init. - update unit tests Sergio Gonzalez Monroy (5): reorder: new reorder library app: New reorder unit test examples: new sample app packet_ordering doc: new reorder library description doc: new packet

[dpdk-dev] [PATCH v3 1/5] reorder: new reorder library

2015-02-06 Thread Sergio Gonzalez Monroy
This library provides reordering capability for out of order mbufs based on a sequence number in the mbuf structure. Signed-off-by: Reshma Pattan Signed-off-by: Richardson Bruce Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdapp | 5 + config

[dpdk-dev] [PATCH v3 2/5] app: New reorder unit test

2015-02-06 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 v4 3/5] examples: new sample app packet_ordering

2015-02-11 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 v4 2/5] app: New reorder unit test

2015-02-11 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 v4 4/5] doc: new reorder library description

2015-02-11 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 v4 1/5] reorder: new reorder library

2015-02-11 Thread Sergio Gonzalez Monroy
This library provides reordering capability for out of order mbufs based on a sequence number in the mbuf structure. Signed-off-by: Reshma Pattan Signed-off-by: Richardson Bruce Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdapp | 5 + config

[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

[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] 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: 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 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 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 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 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 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 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 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 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 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 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 RFC 01/13] mk: Remove combined library and related options

2015-01-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 RFC 03/13] core: move librte_eal to core subdir

2015-01-12 Thread Sergio Gonzalez Monroy
This is equivalent to: git mv lib/librte_eal lib/core Signed-off-by: Sergio Gonzalez Monroy --- lib/core/librte_eal/Makefile |39 + lib/core/librte_eal/bsdapp/Makefile|38 + lib/core/librte_eal/bsdapp/contigmem/BSDmakefile |36 + lib/core

[dpdk-dev] [PATCH RFC 00/13] Update build system

2015-01-12 Thread Sergio Gonzalez Monroy
big because of moving lib directories to a new subdirectory. I have ommited the actual diff from the patch doing the move of librte_eal as it is quite big (6MB). Probably a different approach is preferred. Sergio Gonzalez Monroy (13): mk: Remove combined library and related options lib/core

[dpdk-dev] [PATCH RFC 08/13] Update path of core libraries

2015-01-12 Thread Sergio Gonzalez Monroy
Update path to libraries inside core subdirectory. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_eal_fs.c | 2 +- lib/Makefile | 6 +- lib/core/librte_eal/bsdapp/eal/Makefile| 14 +++--- lib/core

[dpdk-dev] [PATCH RFC 12/13] mk: update apps build

2015-01-12 Thread Sergio Gonzalez Monroy
EXECENV_LIBS always with --as-needed flag. Signed-off-by: Sergio Gonzalez Monroy --- mk/rte.app.mk | 64 --- 1 file changed, 26 insertions(+), 38 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index becdac5..1fc19e1 100644 --- a/mk

[dpdk-dev] [PATCH RFC 09/13] mk: new corelib makefile

2015-01-12 Thread Sergio Gonzalez Monroy
This patch creates a new rte.corelib.mk file and updates core libraries to use it. Signed-off-by: Sergio Gonzalez Monroy --- lib/core/librte_eal/bsdapp/eal/Makefile | 2 +- lib/core/librte_eal/linuxapp/eal/Makefile | 3 +- lib/core/librte_malloc/Makefile | 2 +- lib/core

[dpdk-dev] [PATCH RFC 02/13] lib/core: create new core dir and makefiles

2015-01-12 Thread Sergio Gonzalez Monroy
libraries would be moved to the build directory of librte_core. When building librte_core, the build system will link/archive all objects found in the directory. Signed-off-by: Sergio Gonzalez Monroy --- lib/core/Makefile | 43 + lib/core

[dpdk-dev] [PATCH RFC 13/13] mk: add -lpthread to linuxapp EXECENV_LDLIBS

2015-01-12 Thread Sergio Gonzalez Monroy
We need to add -lpthread to EXECENV_LDLIBS because we are not passing -pthread flags in EXECENV_CFLAGS to GCC when linking apps/ Signed-off-by: Sergio Gonzalez Monroy --- mk/exec-env/linuxapp/rte.vars.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/exec-env/linuxapp/rte.vars.mk b/mk

[dpdk-dev] [PATCH RFC 05/13] core: move librte_mempool to core subdir

2015-01-12 Thread Sergio Gonzalez Monroy
This is equivalent to: git mv lib/librte_mempool lib/core Signed-off-by: Sergio Gonzalez Monroy --- lib/core/librte_mempool/Makefile | 51 + lib/core/librte_mempool/rte_dom0_mempool.c | 134 +++ lib/core/librte_mempool/rte_mempool.c | 901 ++ lib/core

[dpdk-dev] [PATCH RFC 10/13] lib: Set LDLIBS for each library

2015-01-12 Thread Sergio Gonzalez Monroy
This patch set LDLIBS for each library. When creating shared libraries, each library will be linked against their dependant libraries - LDLIBS. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_acl/Makefile | 1 + lib/librte_cfgfile/Makefile | 1 + lib/librte_cmdline/Makefile

[dpdk-dev] [PATCH RFC 06/13] core: move librte_mbuf to core subdir

2015-01-12 Thread Sergio Gonzalez Monroy
This is equivalent to: git mv lib/librte_mbuf lib/core Signed-off-by: Sergio Gonzalez Monroy --- lib/core/librte_mbuf/Makefile | 48 ++ lib/core/librte_mbuf/rte_mbuf.c | 252 + lib/core/librte_mbuf/rte_mbuf.h | 1133 +++ lib/librte_mbuf/Makefile

[dpdk-dev] [PATCH RFC 11/13] mk: Use LDLIBS when linking shared libraries

2015-01-12 Thread Sergio Gonzalez Monroy
(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 7c99fd1..559c76a 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -59,16 +59,19 @@ build: _postbuild exe2cmd

[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 v8 7/9] app/test: rte_memzone_free unit test

2015-07-14 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 v8 3/9] app/test: update malloc/memzone unit tests

2015-07-14 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 v8 8/9] doc: announce ABI change of librte_malloc

2015-07-14 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 | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes

[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 5/9] eal: remove free_memseg and references to it

2015-07-14 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 v8 6/9] eal: new rte_memzone_free

2015-07-14 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 v8 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-07-14 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 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 9/9] doc: update malloc documentation

2015-07-14 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 v9 0/9] Dynamic memzones

2015-07-15 Thread Sergio Gonzalez Monroy
ate - checkpatch v2: - New rte_memzone_free - Support memzone len = 0 - Add 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

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

2015-07-15 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 v9 5/9] eal: remove free_memseg and references to it

2015-07-15 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 v9 2/9] eal: memzone allocated by malloc

2015-07-15 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 v9 7/9] app/test: rte_memzone_free unit test

2015-07-15 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 v9 6/9] eal: new rte_memzone_free

2015-07-15 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 v9 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-07-15 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 v9 1/9] eal: move librte_malloc to eal/common

2015-07-15 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 v9 8/9] doc: announce ABI change of librte_malloc

2015-07-15 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 | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH] eal: set hugepgae_sz to 4KB when using --no-huge

2015-07-15 Thread Sergio Gonzalez Monroy
sizes to be requested") Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/bsdapp/eal/eal_memory.c | 1 + lib/librte_eal/linuxapp/eal/eal_memory.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal_memory.c b/lib/librte_eal/bsdapp/eal/eal_memory.c index 33ebd0

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

2015-07-15 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 | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes

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

2015-07-15 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 v10 6/9] eal: new rte_memzone_free

2015-07-15 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 v10 7/9] app/test: rte_memzone_free unit test

2015-07-15 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 v10 0/9] Dynamic memzones

2015-07-15 Thread Sergio Gonzalez Monroy
yev 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/t

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

2015-07-15 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 v10 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-07-15 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 v10 2/9] eal: memzone allocated by malloc

2015-07-15 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| 290 ++ lib/librte_eal

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

2015-07-15 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 v10 9/9] doc: update malloc documentation

2015-07-15 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 -> 0 bytes doc/guides/prog_guide/img/malloc_heap.

[dpdk-dev] [PATCH v11] doc: update malloc documentation

2015-07-16 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- v11: - Add copyright and licence to SVG file doc/guides/prog_guide/env_abstraction_layer.rst | 220 - doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 0 bytes

[dpdk-dev] [PATCH] malloc: fix combined lib build

2015-07-21 Thread Sergio Gonzalez Monroy
by: Sergio Gonzalez Monroy --- lib/librte_malloc/Makefile | 4 ++-- lib/librte_malloc/rte_malloc.c | 34 -- lib/librte_malloc/rte_malloc_empty.c | 34 ++ 3 files changed, 36 insertions(+), 36 deletions(-) delete mode

[dpdk-dev] [PATCH v2] malloc: fix combined lib build

2015-07-21 Thread Sergio Gonzalez Monroy
Alin Rauta Signed-off-by: Sergio Gonzalez Monroy --- v2: - Fix spelling error (brake -> break) - Update copyright year of dummy file lib/librte_malloc/Makefile | 4 ++-- lib/librte_malloc/rte_malloc.c | 34 -- lib/librte_malloc/rte_malloc

[dpdk-dev] [PATCH] eal: fix set_tsc_freq

2015-07-27 Thread Sergio Gonzalez Monroy
: Requested device :84:00.0 cannot be used Fixes: 040cf8a41187 ("eal: deduplicate timer functions") Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_timer.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_comm

[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] [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 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 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 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 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] 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] 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] 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 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 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 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 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 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 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 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 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 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 2/2] mem: fix freeing an IVSHMEM memzone

2015-08-07 Thread Sergio Gonzalez Monroy
memzones being added to IVSHMEM in the host, by setting ioremap_addr, then return an error whenever we try to free an IVSHMEM memzone. Fixes: ff909fe21f0 ("mem: introduce memzone freeing") Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/eal_common_memzone.c | 8 +++

[dpdk-dev] [PATCH] maintainers: claim responsability

2015-12-02 Thread Sergio Gonzalez Monroy
Claim responsability for: - Secondary Process as maintainer. - FreeBSD EAL, FreeBSD contigmem and FreeBSD UIO as co-maintainer. Signed-off-by: Sergio Gonzalez Monroy --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4478862..51da877 100644

[dpdk-dev] [PATCH v2] mk: fix external shared library dependencies of libraries

2015-12-08 Thread Sergio Gonzalez Monroy
On 08/12/2015 11:47, Panu Matilainen wrote: > Similar to commit 5f9115e58cc6f304ff4ade694cf5823d32887d1a etc, but > for libraries. Clean up librte_vhost CFLAGS/LDFLAGS/LDLIBS confusion > while at it. > > Requiring applications to know about library internal details like > dependencies to external

[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 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 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 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 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

  1   2   3   4   >