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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
, 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
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
. 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
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
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
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
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
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.
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
, 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
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
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
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
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
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
. 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
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
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
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
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
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
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
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
. 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
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
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
, 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
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.
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
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
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
: 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
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
, 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
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
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
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
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
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
.
- 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
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
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
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
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
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
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
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
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
, 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
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.
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
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 +++
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
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
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
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
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
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
, 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 - 100 of 399 matches
Mail list logo