ary "custom_handler" mempool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (4):
mempool: support external handler
mempool: remove rte_ring from rte_mempool struct
mempool: add default
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile | 1 +
lib/librte_mempool/rte_mempool.c | 71 --
lib/librte_mempool/rte_mempool.h | 235 ---
lib/librte_mempool/rte_mempool_handler.c | 141 +++
4 files
Now that we're moving to an external mempoool handler, which
uses a void *pool as a pointer to the pool data, remove the
unneeded ring pointer from the mempool struct.
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib/librte_mempool/rte_mempool.h | 1 -
2 files changed
The first patch in this series added the framework for an external
mempool manager. This patch in the series adds a set of default
handlers based on rte_ring.
v6 changes: split out into a separate patch for easier review.
Signed-off-by: David Hunt
Signed-off-by: Olivier Matz
---
lib
Use a minimal custom mempool external handler and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 114
1 file changed, 114 insertions(+)
diff --git a/app
a different value for RTE_MBUF_DEFAULT_MEMPOOL_HANDLER.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/config/common_base b/config
() allows
the user to change the handler that will be used when populating
the mempool.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile | 1 +
lib/librte_mempool/rte_mempool.c | 71 ---
lib/librte_mempool/rte_mempool.h | 240
Now that we're moving to an external mempoool handler, which
uses a void *pool_data as a pointer to the pool data, remove the
unneeded ring pointer from the mempool struct.
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib/librte_mempool/rte_mempool.h | 1 -
2 files
The first patch in this series added the framework for an external
mempool manager. This patch in the series adds a set of default
ops (functioni callbacks) based on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile | 1 +
lib
Use a minimal custom mempool external ops and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 114
1 file changed, 114 insertions(+)
diff --git a/app/test
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/config/common_base b/config/common_base
cs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (4):
mempool: support external mempool operations
mempool: remove rte_ring from rte_mempool struct
mempool: add default external mempool ops
mbuf: allow apps to change de
() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib/librte_mempool
pool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2):
mempool: support external mempool operations
mbuf: make default mempool ops configurable at build
Olivier Matz (1):
app/test: test external mempool manager
f API usage, please see app/test/test_mempool.c, which
implements a rudimentary "custom_handler" mempool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2):
mempool: support external mempool o
Use a minimal custom mempool external ops and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 115
1 file changed, 115 insertions(+)
diff --git a/app/test
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/config/common_base b/config/common_base
() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib
l.c, which
implements a rudimentary "custom_handler" mempool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2):
mempool: support external mempool operations
mbuf: make default mempo
() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib
Use a minimal custom mempool external ops and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 122 +++-
1 file changed, 120 insertions(+), 2 deletions(-)
diff
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/config/common_base b/config/common_base
see app/test/test_mempool.c, which
implements a rudimentary "custom_handler" mempool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2):
mempool: support external mempool operations
Use a minimal custom mempool external ops and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test/test_mempool.c | 122 +++-
1 file
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions
OPS(ops_mp_mc);
For an example of API usage, please see app/test/test_mempool.c, which
implements a rudimentary "custom_handler" mempool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2)
Use a minimal custom mempool external ops and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test/test_mempool.c | 122 +++-
1 file
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions
rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test
OPS(ops_mp_mc);
For an example of API usage, please see app/test/test_mempool.c, which
implements a rudimentary "custom_handler" mempool manager using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2)
rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test
Use a minimal custom mempool external ops and check that it also
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test/test_mempool.c | 122 +++-
1 file
rudimentary "custom_handler" mempool handler using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2):
mempool: support mempool handler operations
mbuf: make default mempool ops configurable at build
Olivier Matz (1):
app/test: test mempool handler
rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test
Create a minimal custom mempool handler and check that it
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test/test_mempool.c | 122 +++-
1 file changed
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23 insertions(+), 4 deletions
t;custom_handler" mempool handler using simple mallocs
for each mempool object. This file also contains the callbacks and self
registration for the new handler.
David Hunt (2):
mempool: support mempool handler operations
mbuf: make default mempool ops configurable at build
Olivier Matz (1):
app/test: test mempool handler
rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test
Create a minimal custom mempool handler and check that it
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Reviewed-by: Jan Viktorin
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test/test_mempool.c | 122
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Reviewed-by: Jan Viktorin
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23
Handler feature
v2 changes:
* updated based on mailing list feedback (Thanks Stephen)
* checkpatch fixes.
David Hunt (2)
mempool: add stack (lifo) mempool handler
test: add autotest for external mempool stack handler
on every mbuf allocated when the number of
mbufs is large. A stack recycles buffers more effectively in this
case.
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile| 1 +
lib/librte_mempool/rte_mempool_stack.c | 145 +
2 files changed, 146
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
index 31582d8..6cb2b14 100644
--- a/app/test/test_mempool.c
+++ b/app/test/test_mempool.c
@@ -573,6 +573,7
macro will register the ops in the array of ops
structures
REGISTER_MEMPOOL_OPS(ops_mp_mc);
For an example of API usage, please see app/test/test_mempool.c, which
implements a rudimentary "custom_handler" mempool handler using simple mallocs
for each mempool object. This file also contains the
rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.
This patch also adds a set of default ops (function callbacks) based
on rte_ring.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test
Create a minimal custom mempool handler and check that it
passes basic mempool autotests.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Reviewed-by: Jan Viktorin
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
app/test/test_mempool.c | 122
value for RTE_MBUF_DEFAULT_MEMPOOL_OPS.
Signed-off-by: Olivier Matz
Signed-off-by: David Hunt
Reviewed-by: Jan Viktorin
Acked-by: Shreyansh Jain
Acked-by: Olivier Matz
---
config/common_base | 1 +
lib/librte_mbuf/rte_mbuf.c | 26 ++
2 files changed, 23
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_atomic.h | 269 +
1 file changed, 269 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_at
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_byteorder.h | 157 +
1 file changed, 157 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_byteo
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_memcpy.h | 266 +
1 file changed, 266 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_me
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_cycles.h | 77 ++
1 file changed, 77 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_cy
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_prefetch.h | 61 ++
1 file changed, 61 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_pref
This patch provides support for the ARMv8 architecture. We hope that this will
encourage the ARM community to contribute PMDs for their SoCs to DPDK.
For now, we've added Intel engineers to the MAINTAINERS file. We would like to
encourage the ARM community to take over maintenance of this area in
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_vect.h | 102 +
1 file changed, 102 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_vect.h
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
MAINTAINERS| 6
config/defconfig_arm64-native-linuxapp-gcc | 55
mk/arch/arm64/rte.vars.mk
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_cpuflags.h | 137 +
1 file changed, 137 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_cpuf
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_rwlock.h | 70 ++
1 file changed, 70 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_rw
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
.../common/include/arch/arm64/rte_spinlock.h | 114 +
1 file changed, 114 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_spin
From: Benjamin Boren <ben.bo...@intel.com>
Signed-off-by: Benjamin Boren
Signed-off-by: David Hunt
---
app/test/test_cpuflags.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c
index 5b92061..a498511 100644
---
added to the Release notes.
David Hunt (5):
eal/arm: split arm rte_memcpy.h into 32 and 64 bit versions.
eal/arm: split arm rte_prefetch.h into 32 and 64 bit versions
eal/arm: fix 64-bit compilation for armv8
mk: Add makefile support for armv8 architecture
test: add test for cpu flags
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_memcpy.h | 302 +--
.../common/include/arch/arm/rte_memcpy_32.h| 334 +
.../common/include/arch/arm/rte_memcpy_64.h| 308 +++
3 files changed, 647
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_prefetch.h | 31 +++
.../common/include/arch/arm/rte_prefetch_32.h | 61 ++
.../common/include/arch/arm/rte_prefetch_64.h | 61 ++
3 files changed, 128 insertions
Signed-off-by: David Hunt
---
lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h
b/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h
index 7ce9d14..27d49c0 100644
--- a/lib
Signed-off-by: David Hunt
---
MAINTAINERS| 3 +-
config/defconfig_arm64-armv8a-linuxapp-gcc | 56 +
doc/guides/rel_notes/release_2_2.rst | 7 ++--
mk/arch/arm64/rte.vars.mk | 58
Signed-off-by: David Hunt
---
app/test/test_cpuflags.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c
index 557458f..1689048 100644
--- a/app/test/test_cpuflags.c
+++ b/app/test/test_cpuflags.c
@@ -1,4 +1,4
two ports on a
82599 NIC connected via fibre cable.
We have no plans to upstream a kernel patch for this and hope that
someone more familiar with the arm architecture can create a proper patch
and enable this functionality.
David Hunt (6):
eal/arm: add 64-bit armv8 version of rte_memcpy.h
eal/a
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_cycles.h | 4 ++
.../common/include/arch/arm/rte_cycles_64.h| 77 ++
2 files changed, 81 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm/rte_cycles_64.h
diff --git a/lib
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_memcpy.h | 4 +
.../common/include/arch/arm/rte_memcpy_64.h| 308 +
2 files changed, 312 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h
diff --git
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_prefetch.h | 4 ++
.../common/include/arch/arm/rte_prefetch_64.h | 61 ++
2 files changed, 65 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm/rte_prefetch_64.h
diff --git
Signed-off-by: David Hunt
---
lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h
b/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h
index 7ce9d14..5c5fd6a
Signed-off-by: David Hunt
---
MAINTAINERS| 3 +-
config/defconfig_arm64-armv8a-linuxapp-gcc | 56 +
doc/guides/rel_notes/release_2_2.rst | 7 ++--
mk/arch/arm64/rte.vars.mk | 58
Signed-off-by: David Hunt
---
app/test/test_cpuflags.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c
index 557458f..1689048 100644
--- a/app/test/test_cpuflags.c
+++ b/app/test/test_cpuflags.c
@@ -1,4 +1,4
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_cycles.h | 4 ++
.../common/include/arch/arm/rte_cycles_64.h| 77 ++
2 files changed, 81 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm/rte_cycles_64.h
diff --git a/lib
82599 NIC connected via fibre cable.
We have no plans to upstream a kernel patch for this and hope that
someone more familiar with the arm architecture can create a proper patch
and enable this functionality.
Reviewed-by: Jan Viktorin
David Hunt (6):
eal/arm: add 64-bit armv8 version of rt
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_prefetch.h | 4 ++
.../common/include/arch/arm/rte_prefetch_64.h | 61 ++
2 files changed, 65 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm/rte_prefetch_64.h
diff --git
Signed-off-by: David Hunt
---
lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h
b/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h
index 7ce9d14..5c5fd6a
The ARMv8 include files are in the arm directory in
lib/librte_eal/common/include/arch/arm/ with the ARMv7 include files
Signed-off-by: David Hunt
---
MAINTAINERS| 3 +-
config/defconfig_arm64-armv8a-linuxapp-gcc | 56 +
doc/guides
Signed-off-by: David Hunt
---
app/test/test_cpuflags.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c
index 557458f..1689048 100644
--- a/app/test/test_cpuflags.c
+++ b/app/test/test_cpuflags.c
@@ -1,4 +1,4
Signed-off-by: David Hunt
---
.../common/include/arch/arm/rte_memcpy.h | 4 +
.../common/include/arch/arm/rte_memcpy_64.h| 308 +
2 files changed, 312 insertions(+)
create mode 100644 lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h
diff --git
t exception (core dumped)
Signed-off-by: David Hunt
---
app/test/test_pmd_perf.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/app/test/test_pmd_perf.c b/app/test/test_pmd_perf.c
index 8f55640..25b4d09 100644
--- a/app/test/test_pmd_perf.c
+++ b/app/test/t
This patch provides EAL support for the ARMv7 architecture. We hope that this
will encourage the ARM community to contribute PMDs for their SoCs to DPDK.
For now, we've added Intel engineers to the MAINTAINERS file. We would like to
encourage the ARM community to take over maintenance of this
From: Amruta Zende <amruta.ze...@intel.com>
Signed-off-by: Amruta Zende
Signed-off-by: David Hunt
---
MAINTAINERS|5 +
config/defconfig_arm-native-linuxapp-gcc | 56
.../common/include/arch/arm/rte_atomic.h
adds a simple stack based mempool handler
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib/librte_mempool/Makefile| 1 +
lib/librte_mempool/rte_mempool_stack.c | 167 +
3 files changed, 168 insertions(+), 1 deletion
adds a simple ring-based mempool handler using mallocs for each object
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile | 1 +
lib/librte_mempool/custom_mempool.c | 160
2 files changed, 161 insertions(+)
create mode 100644 lib
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib/librte_mempool/Makefile | 1 +
lib/librte_mempool/rte_mempool.c | 210 +++
lib/librte_mempool/rte_mempool.h | 207 +++
lib
Signed-off-by: David Hunt
---
app/test/Makefile | 1 +
app/test/test_ext_mempool.c | 474
2 files changed, 475 insertions(+)
create mode 100644 app/test/test_ext_mempool.c
diff --git a/app/test/Makefile b/app/test/Makefile
index ec33e1a
nd example of a simple malloc based mempool manager, see
lib/librte_mempool/custom_mempool.c
For an example of API usage, please see app/test/test_ext_mempool.c, which
implements a rudimentary mempool manager using simple mallocs for each
mempool object (custom_mempool.c).
David Hunt (5):
mempool: ad
if the user wants to have rte_pktmbuf_pool_create() use an external mempool
handler, they simply define MEMPOOL_HANDLER_NAME to be the name of the
mempool handler they wish to use. May move this to config
Signed-off-by: David Hunt
---
lib/librte_mbuf/rte_mbuf.c | 11 +++
1 file changed
is very similar to the stack handler, so
there's no need to have both.
v3 changes:
* Updated based on the latest version (v15) of the Mempool Handler feature
v2 changes:
* updated based on mailing list feedback (Thanks Stephen)
* checkpatch fixes.
David Hunt (2)
mempool: add stack (lifo
on every mbuf allocated when the number of
mbufs is large. A stack recycles buffers more effectively in this
case.
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile| 1 +
lib/librte_mempool/rte_mempool_stack.c | 145 +
2 files changed, 146
handler test with a stack
handler test, and removes the custom handler code.
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 117 ++--
1 file changed, 14 insertions(+), 103 deletions(-)
diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
no need to have both.
v3 changes:
* Updated based on the latest version (v15) of the Mempool Handler feature
v2 changes:
* updated based on mailing list feedback (Thanks Stephen)
* checkpatch fixes.
David Hunt (2)
mempool: add stack (lifo) mempool handler
test: migrate custom handler test
on every mbuf allocated when the number of
mbufs is large. A stack recycles buffers more effectively in this
case.
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile| 1 +
lib/librte_mempool/rte_mempool_stack.c | 145 +
2 files changed, 146
handler test with a stack
handler test, and removes the custom handler code.
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 114 ++--
1 file changed, 13 insertions(+), 101 deletions(-)
diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
changes:
* Updated based on the latest version (v15) of the Mempool Handler feature
v2 changes:
* updated based on mailing list feedback (Thanks Stephen)
* checkpatch fixes.
David Hunt (2)
mempool: add stack (lifo) mempool handler
test: migrate custom handler test to stack handler
on every mbuf allocated when the number of
mbufs is large. A stack recycles buffers more effectively in this
case.
Signed-off-by: David Hunt
---
lib/librte_mempool/Makefile| 1 +
lib/librte_mempool/rte_mempool_stack.c | 145 +
2 files changed, 146
handler test with a stack
handler test, and removes the custom handler code.
Signed-off-by: David Hunt
---
app/test/test_mempool.c | 114 ++--
1 file changed, 13 insertions(+), 101 deletions(-)
diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
ry mempool manager using simple mallocs for each
mempool object. This file also contains the callbacks and self registration
for the new handler.
David Hunt (4):
mempool: add external mempool manager support
mempool: add custom mempool handler example
mempool: allow rte_pktmbuf_pool_create swit
the duplicated code in rte_mempool_xmem_create and
rte_mempool_create_ext into one common function. The old functions
now call the new common function with the relevant parameters.
Signed-off-by: David Hunt
---
app/test/test_mempool_perf.c | 1 -
lib/librte_mempool/Makefile
Add a custom mempool handler as part of an autotest:
ext_mempool_autotest as defined in test_ext_mempool.c
v3: now contains the mempool handler within the test file along
with it's get/put/get_count callbacks and self registration
Signed-off-by: David Hunt
---
app/test/Makefile | 1
1 - 100 of 125 matches
Mail list logo