[dpdk-dev] [PATCH v1 2/2] example: distributor app modified to use burstAPI

2016-12-01 Thread David Hunt
to be run on the same core, and a few more commented out lines to allow skipping of flow matching algo, etc. Code is comment in the appropriate location Signed-off-by: David Hunt --- examples/distributor/main.c | 489 ++-- 1 file changed, 380 insertio

[dpdk-dev] [PATCH v1 1/2] lib: distributor performance enhancements

2016-12-01 Thread David Hunt
Now sends bursts of up to 8 mbufs to each worker, and tracks the in-flight flow-ids (atomic scheduling) New file with a new api, similar to the old API except with _burst at the end of the function names. Signed-off-by: David Hunt --- lib/librte_distributor/Makefile | 2

[dpdk-dev] [PATCH v1 1/2] distributor lib performance enhancements

2016-12-01 Thread David Hunt
This patch aims to improve the throughput of the distributor library. It uses a similar handshake mechanism to the previous version of the library, in that bits are used to indicate when packets are ready to be sent to a worker and ready to be returned from a worker. One main difference is that

[dpdk-dev] [PATCH v6 2/2] test: migrate custom handler test to stack handler

2016-07-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 1/2] mempool: add stack (lifo) mempool handler

2016-07-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 0/2] mempool: add stack mempool handler

2016-07-01 Thread David Hunt
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

[dpdk-dev] [PATCH v5 2/2] test: migrate custom handler test to stack handler

2016-06-30 Thread David Hunt
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

[dpdk-dev] [PATCH v5 1/2] mempool: add stack (lifo) mempool handler

2016-06-30 Thread David Hunt
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

[dpdk-dev] [PATCH v5 0/2] mempool: add stack mempool handler

2016-06-30 Thread David Hunt
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

[dpdk-dev] [PATCH v4 2/2] test: migrate custom handler test to stack handler

2016-06-30 Thread David Hunt
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

[dpdk-dev] [PATCH v4 1/2] mempool: add stack (lifo) mempool handler

2016-06-30 Thread David Hunt
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

[dpdk-dev] [PATCH v4 0/2] mempool: add stack mempool handler

2016-06-30 Thread David Hunt
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

[dpdk-dev] [PATCH v16 3/3] mbuf: make default mempool ops configurable at build

2016-06-22 Thread David Hunt
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

[dpdk-dev] [PATCH v16 2/3] app/test: test mempool handler

2016-06-22 Thread David Hunt
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

[dpdk-dev] [PATCH v16 1/3] mempool: support mempool handler operations

2016-06-22 Thread David Hunt
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

[dpdk-dev] [PATCH v16 0/3] mempool: add mempool handler feature

2016-06-22 Thread David Hunt
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

[dpdk-dev] [PATCH v3 2/2] test: add autotest for external mempool stack handler

2016-06-20 Thread David Hunt
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

[dpdk-dev] [PATCH v3 1/2] mempool: add stack (lifo) mempool handler

2016-06-20 Thread David Hunt
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

[dpdk-dev] mempool: add stack mempool handler

2016-06-20 Thread David Hunt
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

[dpdk-dev] [PATCH v15 3/3] mbuf: make default mempool ops configurable at build

2016-06-19 Thread David Hunt
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

[dpdk-dev] [PATCH v15 2/3] app/test: test mempool handler

2016-06-19 Thread David Hunt
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

[dpdk-dev] [PATCH v15 1/3] mempool: support mempool handler operations

2016-06-19 Thread David Hunt
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

[dpdk-dev] [PATCH v15 0/3] mempool: add mempool handler feature

2016-06-19 Thread David Hunt
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

[dpdk-dev] [PATCH v14 3/3] mbuf: make default mempool ops configurable at build

2016-06-17 Thread David Hunt
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

[dpdk-dev] [PATCH v14 2/3] app/test: test mempool handler

2016-06-17 Thread David Hunt
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

[dpdk-dev] [PATCH v14 1/3] mempool: support mempool handler operations

2016-06-17 Thread David Hunt
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

[dpdk-dev] [PATCH v14 0/3] mempool: add mempool handler feature

2016-06-17 Thread David Hunt
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

[dpdk-dev] [PATCH v13 2/3] app/test: test external mempool manager

2016-06-16 Thread David Hunt
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

[dpdk-dev] [PATCH v13 1/3] mempool: support external mempool operations

2016-06-16 Thread David Hunt
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

[dpdk-dev] [PATCH v13 0/3] mempool: add external mempool manager

2016-06-16 Thread David Hunt
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)

[dpdk-dev] [PATCH v12 3/3] mbuf: make default mempool ops configurable at build

2016-06-15 Thread David Hunt
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

[dpdk-dev] [PATCH v12 2/3] app/test: test external mempool manager

2016-06-15 Thread David Hunt
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

[dpdk-dev] [PATCH v12 1/3] mempool: support external mempool operations

2016-06-15 Thread David Hunt
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

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread David Hunt
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)

[dpdk-dev] [PATCH v11 3/3] mbuf: make default mempool ops configurable at build

2016-06-14 Thread David Hunt
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

[dpdk-dev] [PATCH v11 2/3] app/test: test external mempool manager

2016-06-14 Thread David Hunt
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

[dpdk-dev] [PATCH v11 0/3] mempool: add external mempool manager

2016-06-14 Thread David Hunt
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

[dpdk-dev] [PATCH v10 3/3] mbuf: make default mempool ops configurable at build

2016-06-14 Thread David Hunt
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

[dpdk-dev] [PATCH v10 2/3] app/test: test external mempool manager

2016-06-14 Thread David Hunt
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

[dpdk-dev] [PATCH v10 1/3] mempool: support external mempool operations

2016-06-14 Thread David Hunt
() 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

[dpdk-dev] [PATCH v10 0/3] mempool: add external mempool manager

2016-06-14 Thread David Hunt
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

[dpdk-dev] [PATCH v9 3/3] mbuf: make default mempool ops configurable at build

2016-06-10 Thread David Hunt
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

[dpdk-dev] [PATCH v9 2/3] app/test: test external mempool manager

2016-06-10 Thread David Hunt
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

[dpdk-dev] [PATCH v9 1/3] mempool: support external mempool operations

2016-06-10 Thread David Hunt
() 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

[dpdk-dev] [PATCH v9 0/3] mempool: add external mempool manager

2016-06-10 Thread David Hunt
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

[dpdk-dev] [PATCH v8 1/3] mempool: support external mempool operations

2016-06-03 Thread David Hunt
() 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

[dpdk-dev] [PATCH v8 0/5] mempool: add external mempool manager

2016-06-03 Thread David Hunt
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

[dpdk-dev] [PATCH v7 5/5] mbuf: allow apps to change default mempool ops

2016-06-02 Thread David Hunt
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

[dpdk-dev] [PATCH v7 4/5] app/test: test external mempool manager

2016-06-02 Thread David Hunt
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

[dpdk-dev] [PATCH v7 3/5] mempool: add default external mempool ops

2016-06-02 Thread David Hunt
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

[dpdk-dev] [PATCH v7 2/5] mempool: remove rte_ring from rte_mempool struct

2016-06-02 Thread David Hunt
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

[dpdk-dev] [PATCH v7 1/5] mempool: support external mempool operations

2016-06-02 Thread David Hunt
() 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

[dpdk-dev] [PATCH v7 0/5] mempool: add external mempool manager

2016-06-02 Thread David Hunt
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

[dpdk-dev] [PATCH v6 5/5] mbuf: get default mempool handler from configuration

2016-06-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 4/5] app/test: test external mempool handler

2016-06-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 3/5] mempool: add default external mempool handler

2016-06-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 2/5] mempool: remove rte_ring from rte_mempool struct

2016-06-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 1/5] mempool: support external handler

2016-06-01 Thread David Hunt
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

[dpdk-dev] [PATCH v6 0/5] mempool: add external mempool manager

2016-06-01 Thread David Hunt
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

[dpdk-dev] [PATCH v2] test: fix mempool perf test enq_count wraparound of 32-bit uint

2016-05-26 Thread David Hunt
recent CPU's can easily wrap around a 32-bit unsigned int in the mempool perf test. Increase to a 64-bit uint. v2: change from %lu to %"PRIu64" Signed-off-by: David Hunt --- app/test/test_mempool_perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[dpdk-dev] [PATCH] test: fix mempool perf test enq_count wraparound of 32-bit uint

2016-05-26 Thread David Hunt
recent CPU's can easily wrap around a 32-bit unsigned int in the mempool perf test. Increase to a 64-bit uint. Signed-off-by: David Hunt --- app/test/test_mempool_perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test/test_mempool_perf.c b/app/test

[dpdk-dev] [PATCH v2 3/3] test: add autotest for external mempool stack handler

2016-05-19 Thread David Hunt
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 f55d126..b98804a 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -570,6 +570,7

[dpdk-dev] [PATCH v2 1/3] mempool: add stack (lifo) mempool handler

2016-05-19 Thread David Hunt
on every mbuf allocated when the number of mbufs is large. A stack recycles buffers more effectively in this case. v2: cleanup based on mailing list comments. Mainly removal of unnecessary casts and comments. Signed-off-by: David Hunt --- lib/librte_mempool/Makefile| 1 + lib

[dpdk-dev] v2 mempool: add stack (lifo) mempool handler

2016-05-19 Thread David Hunt
This patch set adds a fifo stack handler to the external mempool manager. This patch set depends on the 3 part external mempool handler patch set (v5 of the series): http://dpdk.org/ml/archives/dev/2016-May/039364.html v2 changes: * updated based on mailing list feedback (Thanks Stephen) *

[dpdk-dev] [PATCH v5 3/3] mbuf: get default mempool handler from configuration

2016-05-19 Thread David Hunt
a different value for RTE_MBUF_DEFAULT_MEMPOOL_HANDLER. Signed-off-by: David Hunt Signed-off-by: Olivier Matz --- config/common_base | 1 + lib/librte_mbuf/rte_mbuf.c | 21 + 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/config/common_base b/config

[dpdk-dev] [PATCH v5 2/3] app/test: test external mempool handler

2016-05-19 Thread David Hunt
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 | 113 1 file changed, 113 insertions(+) diff --git a/app

[dpdk-dev] [PATCH v5 1/3] mempool: support external handler

2016-05-19 Thread David Hunt
rte_mempool_create_empty() allows to change the handler that will be used when populating the mempool. v5 changes: rebasing on top of 35 patch set mempool work. Signed-off-by: David Hunt Signed-off-by: Olivier Matz --- app/test/test_mempool_perf.c | 1 - lib/librte_mempool/Makefile

[dpdk-dev] mempool: external mempool manager

2016-05-19 Thread David Hunt
alloc based mempool manager, see lib/librte_mempool/custom_mempool.c 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 sel

[dpdk-dev] [PATCH 2/2] test: add autotest for external mempool stack handler

2016-05-05 Thread David Hunt
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 09951cc..8190f20 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -570,6 +570,7

[dpdk-dev] [PATCH 1/2] mempool: add stack (fifo) mempool handler

2016-05-05 Thread David Hunt
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 | 154 + 2 files changed, 155

[dpdk-dev] [PATCH 0/2] mempool: add stack (fifo) mempool handler

2016-05-05 Thread David Hunt
/patchwork/patch/12038/ David Hunt (2): mempool: add stack (fifo) mempool handler test: add autotest for external mempool stack handler app/test/test_mempool.c| 26 ++ lib/librte_mempool/Makefile| 1 + lib/librte_mempool/rte_mempool_stack.c | 154

[dpdk-dev] [PATCH] doc: add mempool mgr ABI deprication notice

2016-03-10 Thread David Hunt
Announce the ABI breakage due to addition of external mempool manager functionality which requires changes to rte_mempool structure. Signed-off-by: David Hunt --- doc/guides/rel_notes/deprecation.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v3 4/4] mempool: add in the RTE_NEXT_ABI for ABI breakages

2016-03-09 Thread David Hunt
the previous patches easier to read, and also to imake it clear what code is necessary to keep ABI compatibility when NEXT_ABI is disabled. Signed-off-by: David Hunt --- app/test/Makefile| 2 + app/test/test_mempool_perf.c | 3 + lib/librte_mbuf/rte_mbuf.c | 7

[dpdk-dev] [PATCH v3 3/4] mempool: allow rte_pktmbuf_pool_create switch between memool handlers

2016-03-09 Thread David Hunt
If the user wants to have rte_pktmbuf_pool_create() use an external mempool handler, they define RTE_MEMPOOL_HANDLER_NAME to be the name of the mempool handler they wish to use, and change RTE_MEMPOOL_HANDLER_EXT to 'y' Signed-off-by: David Hunt --- config/common_base | 2 ++ lib

[dpdk-dev] [PATCH v3 2/4] mempool: add custom mempool handler example

2016-03-09 Thread David Hunt
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

[dpdk-dev] [PATCH v3 1/4] mempool: add external mempool manager support

2016-03-09 Thread David Hunt
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

[dpdk-dev] [PATCH v3 0/4] external mempool manager

2016-03-09 Thread David Hunt
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

[dpdk-dev] [PATCH 6/6] mempool: add in the RTE_NEXT_ABI protection for ABI breakages

2016-02-16 Thread David Hunt
v2: Kept all the NEXT_ABI defs to this patch so as to make the previous patches easier to read, and also to imake it clear what code is necessary to keep ABI compatibility when NEXT_ABI is disabled. Signed-off-by: David Hunt --- app/test/Makefile| 2 + app/test

[dpdk-dev] [PATCH 5/6] mempool: allow rte_pktmbuf_pool_create switch between memool handlers

2016-02-16 Thread David Hunt
config files Signed-off-by: David Hunt --- config/common_bsdapp | 2 ++ config/common_linuxapp | 2 ++ lib/librte_mbuf/rte_mbuf.c | 8 3 files changed, 12 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 696382c..e0c812a 100644 --- a/config

[dpdk-dev] [PATCH 4/6] mempool: add autotest for external mempool custom example

2016-02-16 Thread David Hunt
Signed-off-by: David Hunt --- app/test/Makefile | 1 + app/test/test_ext_mempool.c | 451 2 files changed, 452 insertions(+) create mode 100644 app/test/test_ext_mempool.c diff --git a/app/test/Makefile b/app/test/Makefile index ec33e1a

[dpdk-dev] [PATCH 3/6] mempool: adds a simple ring-based mempool handler using mallocs for objects

2016-02-16 Thread David Hunt
Signed-off-by: David Hunt --- lib/librte_mempool/Makefile | 1 + lib/librte_mempool/custom_mempool.c | 146 2 files changed, 147 insertions(+) create mode 100644 lib/librte_mempool/custom_mempool.c diff --git a/lib/librte_mempool/Makefile b/lib

[dpdk-dev] [PATCH 2/6] mempool: add stack (lifo) based external mempool handler

2016-02-16 Thread David Hunt
adds a simple stack based mempool handler Signed-off-by: David Hunt --- lib/librte_mempool/Makefile| 2 +- lib/librte_mempool/rte_mempool.c | 4 +- lib/librte_mempool/rte_mempool.h | 1 + lib/librte_mempool/rte_mempool_stack.c | 164

[dpdk-dev] [PATCH 1/6] mempool: add external mempool manager support

2016-02-16 Thread David Hunt
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

[dpdk-dev] [PATCH 0/6] external mempool manager

2016-02-16 Thread David Hunt
ool object (custom_mempool.c). David Hunt (6): mempool: add external mempool manager support mempool: add stack (lifo) based external mempool handler mempool: adds a simple ring-based mempool handler using mallocs for objects mempool: add autotest for external mempool custom example memp

[dpdk-dev] [PATCH 5/5] mempool: allow rte_pktmbuf_pool_create switch between memool handlers

2016-01-26 Thread David Hunt
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

[dpdk-dev] [PATCH 4/5] mempool: add autotest for external mempool custom example

2016-01-26 Thread David Hunt
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

[dpdk-dev] [PATCH 3/5] mempool: add custom external mempool handler example

2016-01-26 Thread David Hunt
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

[dpdk-dev] [PATCH 2/5] memool: add stack (lifo) based external mempool handler

2016-01-26 Thread David Hunt
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

[dpdk-dev] [PATCH 1/5] mempool: add external mempool manager support

2016-01-26 Thread David Hunt
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

[dpdk-dev] [PATCH 0/5] add external mempool manager

2016-01-26 Thread David Hunt
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

[dpdk-dev] [PATCH] test: fix crash in pmd_perf_test

2015-11-23 Thread David Hunt
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

[dpdk-dev] [PATCH v3 6/6] test: add checks for cpu flags on armv8

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v3 5/6] mk: add support for armv8 on top of armv7

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v3 4/6] eal/arm: fix 64-bit armv8 compilation of rte_cpuflags.h

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v3 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v3 2/6] eal/arm: add 64-bit armv8 version of rte_prefetch.h

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v3 1/6] eal/arm: add 64-bit armv8 version of rte_memcpy.h

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v3 0/6] ARMv8 additions to ARMv7 support

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v2 6/6] test: add checks for cpu flags on armv8

2015-10-30 Thread David Hunt
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

[dpdk-dev] [PATCH v2 5/6] mk: add support for armv8 on top of armv7

2015-10-30 Thread David Hunt
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

  1   2   >