[PATCH v3 1/2] event/sw: fix ordering corruption with op release

2023-10-02 Thread Harry van Haaren
ot;) Fixes: 617995dfc5b2 ("event/sw: add scheduling logic") Cc: sta...@dpdk.org Suggested-by: Bruce Richardson Signed-off-by: Harry van Haaren Acked-by: Bruce Richardson --- v3: - Fixup whitespace and line wrapping suggestions (Bruce) - Add Fixes lines (Bruce) - Cc stable, as this is a

[PATCH v3 2/2] event/sw: add selftest for ordered history list

2023-10-02 Thread Harry van Haaren
incorrectly be reordered. The existing unit-tests did not cover the RELEASE of an ORDERED queue, and then stress-test the history-list by iterating HIST_LIST times afterwards. Signed-off-by: Harry van Haaren Acked-by: Bruce Richardson --- v3: - Including Ack from v2 --- drivers/event/sw

[PATCH 2/2] event/sw: fix ordering corruption with op release

2023-08-31 Thread Harry van Haaren
state, and future events with op type of forward could be incorrectly reordered. Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev_scheduler.c | 45 --- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/drivers/event/sw/sw_evdev_scheduler.c b/drivers

[PATCH 1/2] event/sw: add selftest for ordered history list

2023-08-31 Thread Harry van Haaren
incorrectly be reordered. The existing unit-tests did not cover the RELEASE of an ORDERED queue, and then stress-test the history-list by iterating HIST_LIST times afterwards. Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev_selftest.c | 132 +++ 1 file changed

[PATCH v2 1/2] event/sw: fix ordering corruption with op release

2023-09-14 Thread Harry van Haaren
events with op type of forward could be incorrectly reordered. Suggested-by: Bruce Richardson Signed-off-by: Harry van Haaren --- v2: - Rework fix to simpler suggestion (Bruce) - Respin patchset to "apply order" (Bruce) --- drivers/event/sw/sw_evdev_scheduler.c | 15 +++--

[PATCH v2 2/2] event/sw: add selftest for ordered history list

2023-09-14 Thread Harry van Haaren
incorrectly be reordered. The existing unit-tests did not cover the RELEASE of an ORDERED queue, and then stress-test the history-list by iterating HIST_LIST times afterwards. Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev_selftest.c | 132 +++ 1 file changed

[PATCH] service: debug and fix lingering might_be_active() result

2022-07-05 Thread Harry van Haaren
topped. This is fixed by ensuring the "active on lcore" status of each service is set to 0 when an lcore is stopped. Fixes: e30dd31847d2 ("service: add mechanism for quiescing") Fixes: 8929de043eb4 ("service: retrieve lcore active state") Reported-by: S. V. Naga Haris

[PATCH 1/2] test/service: add perf measurements for with stats mode

2022-07-08 Thread Harry van Haaren
Suggested-by: Morten Brørup Signed-off-by: Harry van Haaren --- This is split out as a seperate patch from the fix to allow measuring the before/after of the service stats atomic fixup. --- app/test/test_service_cores.c | 36 --- 1 file changed, 25 insertions

[PATCH 2/2] service: fix potential stats race-condition on MT services

2022-07-08 Thread Harry van Haaren
cycle-cost for polling a MT safe service when statistics are enabled. No change was seen for MT unsafe services, or when statistics are disabled. Reported-by: Mattias Rönnblom Suggested-by: Honnappa Nagarahalli Suggested-by: Morten Brørup Signed-off-by: Harry van Haaren --- --- lib/eal/common

[PATCH v2 1/2] test/service: add perf measurements for with stats mode

2022-07-11 Thread Harry van Haaren
Suggested-by: Morten Brørup Signed-off-by: Harry van Haaren --- This is split out as a seperate patch from the fix to allow measuring the before/after of the service stats atomic fixup. --- app/test/test_service_cores.c | 36 --- 1 file changed, 25 insertions

[PATCH v2 2/2] service: fix potential stats race-condition on MT services

2022-07-11 Thread Harry van Haaren
Suggested-by: Honnappa Nagarahalli Suggested-by: Morten Brørup Suggested-by: Bruce Richardson Signed-off-by: Harry van Haaren --- v2 (Thanks Honnappa, Morten, Bruce & Mattias for discussion): - Improved handling of stat stores to ensure they're atomic by using __atomic_store_n() wit

[PATCH v3 1/2] test/service: add perf measurements for with stats mode

2022-07-11 Thread Harry van Haaren
Suggested-by: Morten Brørup Signed-off-by: Harry van Haaren --- This is split out as a seperate patch from the fix to allow measuring the before/after of the service stats atomic fixup. --- app/test/test_service_cores.c | 36 --- 1 file changed, 25 insertions

[PATCH v3 2/2] service: fix potential stats race-condition on MT services

2022-07-11 Thread Harry van Haaren
Suggested-by: Honnappa Nagarahalli Suggested-by: Morten Brørup Suggested-by: Bruce Richardson Signed-off-by: Harry van Haaren --- v3: - Fix 32-bit build, by forcing natural alignment of uint64_t in the struct that contains it, using __rte_aligned(8) macro. - Note: I'm seeing a checkpatch &

[dpdk-dev] [PATCH] app/test-eventdev: fix terminal colour after control-c exit

2021-10-14 Thread Harry van Haaren
: 6b1a14a83a06 ("app/eventdev: add packet distribution logs") Signed-off-by: Harry van Haaren --- Given this is an aesthetic only fix, I feel its not worth backporting. Cc: pbhagavat...@marvell.com> --- app/test-eventdev/test_perf_common.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[dpdk-dev] [PATCH v2 1/4] eventdev: add usage hints to port configure API

2021-10-14 Thread Harry van Haaren
) - RTE_EVENT_PORT_CFG_HINT_CONSUMER (mostly RTE_EVENT_OP_RELEASE events) - RTE_EVENT_PORT_CFG_HINT_WORKER (mostly RTE_EVENT_OP_FORWARD events) These flags are only hints, and the PMDs must operate under the assumption that any port can enqueue an event with any type of op. Signed-off-by: Harry van Haaren --- v2: - Add

[dpdk-dev] [PATCH v2 2/4] examples/eventdev_pipeline: use port config hints

2021-10-14 Thread Harry van Haaren
This commit adds the per-port hints added to the eventdev API, indicating which eventdev ports will be used for producing, forwarding, or consuming events from the system. Signed-off-by: Harry van Haaren --- examples/eventdev_pipeline/pipeline_worker_generic.c | 2 ++ examples/eventdev_pipeline

[dpdk-dev] [PATCH v2 3/4] test-eventdev: add event port hints for perf mode

2021-10-14 Thread Harry van Haaren
This commit adds producer, worker and consumer port hints for the test-eventdev application performance tests. Signed-off-by: Harry van Haaren --- app/test-eventdev/test_perf_common.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/app/test-eventdev

[dpdk-dev] [PATCH v2 4/4] event/dlb2: optimize credit allocations using port hint flags

2021-10-14 Thread Harry van Haaren
From: "Pathak, Pravin" This commit implements the changes required for using suggested port type hint feature. Each port uses different credit quanta based on port type specified using port configuration flags. Each port has separate quanta defined in dlb2_priv.h Producer and consumer ports will

[PATCH 1/2] docs/bpf: fix formatting and link

2022-05-27 Thread Harry van Haaren
Small improvements to the documentation based on Sphinx HTML doc output. Signed-off-by: Harry van Haaren --- Cc: konstantin.v.anan...@yandex.ru --- doc/guides/prog_guide/bpf_lib.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/bpf_lib.rst

[PATCH 2/2] docs: improve ordering and remove old header titles

2022-05-27 Thread Harry van Haaren
Move the "source_org" page to after overview, where it fits better to explain the source-code layout of DPDK, before getting into details of specific libraries such as EAL. Also removes the older titles from the 3 documents which still had them. Signed-off-by: Harry van Haaren ---

[dpdk-dev] [PATCH] eventdev: remove return value comment in pmd api

2021-02-01 Thread Harry van Haaren
The PMD info get API has a void return type. Remove the @return 0 Success doxygen comment as it doesn't make sense here. Reported-by: Fredrik A Lindgren Signed-off-by: Harry van Haaren --- lib/librte_eventdev/eventdev_pmd.h | 3 --- 1 file changed, 3 deletions(-) diff --git

[dpdk-dev] [PATCH v3 1/3] service: add component useful work attribute

2021-02-12 Thread Harry van Haaren
seful, and a CPU load estimate can be deduced from that information. Signed-off-by: Harry van Haaren --- lib/librte_eal/common/rte_service.c | 19 +++ lib/librte_eal/include/rte_service.h | 5 + .../include/rte_service_component.h | 13

[dpdk-dev] [PATCH v3 3/3] event/sw: add xstat for work done in last iteration

2021-02-12 Thread Harry van Haaren
ports, always report that a port got an event. Signed-off-by: Harry van Haaren --- Note most of the changes here are unit-test changes to add a statistic to the PMD. The actual "useful code" is a mere handful of lines in a lot of noise.. could split into 2 patches? --- driver

[dpdk-dev] [PATCH v3 2/3] event/sw: add useful work done attribute

2021-02-12 Thread Harry van Haaren
This commit exposes if useful work is done to the service instance. The normal service_attr_get() API can be used to retrieve the value of the attribute. Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev_scheduler.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH v4] event/sw: add xstats to expose progress details

2021-03-03 Thread Harry van Haaren
of scheduling, as well if forward progress was made by the scheduler. This patch implements an xstat for the SW PMD that exposes a bitmask of ports that were scheduled to. In the unlikely case that the SW PMD instance has 64 or more ports, return UINT64_MAX. Signed-off-by: Harry van Haaren

[PATCH] service: split tests to perf and autotest to avoid spurious CI failures

2023-02-24 Thread Harry van Haaren
-by: Harry van Haaren --- See DPDK ML discussion in this thread: http://mails.dpdk.org/archives/dev/2023-February/263523.html --- app/test/meson.build | 1 + app/test/test_service_cores.c | 32 +++- 2 files changed, 28 insertions(+), 5 deletions(-) diff

[PATCH v2] service: split tests to perf and autotest to avoid spurious CI failures

2023-03-03 Thread Harry van Haaren
-by: Harry van Haaren --- v2: - Add "performance" to suite name (David) - Remove comment above perf-test suite (David) See DPDK ML discussion in this thread: http://mails.dpdk.org/archives/dev/2023-February/263523.html --- app/test/meson.build | 1 + app/test/test_service_co

[PATCH] test/service: fix spurious failures by extending timeout

2022-10-06 Thread Harry van Haaren
avoiding duplication. Reported-by: David Marchand Suggested-by: Mattias Ronnblom Signed-off-by: Harry van Haaren --- app/test/test_service_cores.c | 43 --- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/app/test/test_service_cores.c b/app/test

[PATCH v2] test/service: fix spurious failures by extending timeout

2022-10-06 Thread Harry van Haaren
code was duplicated in two tests, and is now refactored to a standalone function avoiding duplication. Reported-by: David Marchand Suggested-by: Mattias Ronnblom Signed-off-by: Harry van Haaren --- Apologies for the quick respin noise; only the first diff-section is added, no changes to the rest

[PATCH v3] test/service: fix spurious failures by extending timeout

2022-10-06 Thread Harry van Haaren
code was duplicated in two tests, and is now refactored to a standalone function avoiding duplication. Reported-by: David Marchand Suggested-by: Mattias Ronnblom Signed-off-by: Harry van Haaren --- v3: - Use #define for timeout, and delay(1) (Mattias) - Rework slcore-wait to use TIMEOUT_MS as

[PATCH] event/sw: fix selftest xstats reset API usage

2022-10-12 Thread Harry van Haaren
Fixes: e21df4b062b5 ("test/eventdev: add SW xstats tests") Reported-by: Morten Brørup Signed-off-by: Harry van Haaren --- Note this is a fix for a potential build issue in 64-bit BE systems. --- drivers/event/sw/sw_evdev_selftest.c | 15 +-- 1 file changed, 9 insertions(+)

[dpdk-dev] [PATCH 0/2] eventdev: add port usage hints

2021-09-09 Thread Harry van Haaren
*functionally* any combination of (NEW/FWD/RELEASE) is still allowed by any port. The reason to add these is to allow a PMD to allocate internal resource more efficiently. Note that this implementation does not change the ABI, as it gives a purpose to existing bits in an existing field. Regards

[dpdk-dev] [PATCH 1/2] lib/eventdev: add usage hints to port configure API

2021-09-09 Thread Harry van Haaren
) - RTE_EVENT_PORT_CFG_HINT_CONSUMER (mostly RTE_EVENT_OP_RELEASE events) - RTE_EVENT_PORT_CFG_HINT_WORKER (mostly RTE_EVENT_OP_FORWARD events) These flags are only hints, and the PMDs must operate under the assumption that any port can enqueue an event with any type of op. Signed-off-by: Harry van Haaren --- lib/eventdev

[dpdk-dev] [PATCH 2/2] examples/eventdev_pipeline: use port config hints

2021-09-09 Thread Harry van Haaren
This commit adds the per-port hints added to the eventdev API, indicating which eventdev ports will be used for producing, forwarding, or consuming events from the system. Signed-off-by: Harry van Haaren --- examples/eventdev_pipeline/pipeline_worker_generic.c | 2 ++ examples/eventdev_pipeline

[dpdk-dev] [PATCH v5] event/sw: add xstats to expose progress details

2021-03-08 Thread Harry van Haaren
of scheduling, as well if forward progress was made by the scheduler. This patch implements an xstat for the SW PMD that exposes a bitmask of ports that were scheduled to. In the unlikely case that the SW PMD instance has 64 or more ports, return UINT64_MAX. Signed-off-by: Harry van Haaren

[dpdk-dev] [PATCH 00/15] next-eventdev: event/sw Software Eventdev

2017-01-16 Thread Harry van Haaren
the eventdev API, then the software implementation is added, and finally tests are added for the sw eventdev implementation. This patchset contains the work of multiple developers, please see signoffs on each patch. Signed-off-by: Harry van Haaren [1] http://dpdk.org/ml/archives/dev/2016

[dpdk-dev] [PATCH 02/15] eventdev: add APIs for extended stats

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Add in APIs for extended stats so that eventdev implementations can report out information on their internal state. The APIs are based on, but not identical to, the equivalent ethdev functions. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- lib

[dpdk-dev] [PATCH 01/15] eventdev: remove unneeded dependencies

2017-01-16 Thread Harry van Haaren
header is not needed, but following their removal, rte_memory.h is needed for the definition of the __rte_cache_aligned macro. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- lib/librte_eventdev/Makefile | 1 - lib/librte_eventdev/rte_eventdev.h | 5 +++-- 2 files changed, 3

[dpdk-dev] [PATCH 03/15] event/sw: add new software-only eventdev driver

2017-01-16 Thread Harry van Haaren
: Creating eventdev sw device event_sw0, numa_node=0, sched_quanta=128 RTE>> Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- config/common_base| 5 + drivers/event/Makefile| 1 + drivers/event/sw/Ma

[dpdk-dev] [PATCH 04/15] event/sw: add function to return device capabilities

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Add in the info_get function to return details on the queues, flow, prioritization capabilities, etc. that this device has. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 23 +++ drivers/event/sw

[dpdk-dev] [PATCH 06/15] event/sw: add fns to return default port/queue config

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 1bdcc05..8cc8e06 100644

[dpdk-dev] [PATCH 08/15] event/sw: add support for event ports

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Add in the data-structures for the ports used by workers to send packets to/from the scheduler. Also add in the functions to create/destroy those ports. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/event_ring.h | 179

[dpdk-dev] [PATCH 09/15] event/sw: add support for linking queues to ports

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 67 + 1 file changed, 67 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 51f4ffd

[dpdk-dev] [PATCH 07/15] event/sw: add support for event queues

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Add in the data structures for the event queues, and the eventdev functions to create and destroy those queues. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/iq_ring.h | 176 drivers

[dpdk-dev] [PATCH 05/15] event/sw: add configure function

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 17 + drivers/event/sw/sw_evdev.h | 13 + 2 files changed, 30 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw

[dpdk-dev] [PATCH 12/15] event/sw: add start, stop and close functions

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 74 + 1 file changed, 74 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 021f3ab

[dpdk-dev] [PATCH 13/15] event/sw: add dump function for easier debugging

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 109 1 file changed, 109 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 318f1d7

[dpdk-dev] [PATCH 11/15] event/sw: add scheduling logic

2017-01-16 Thread Harry van Haaren
Signed-off-by: Gage Eads Signed-off-by: Harry van Haaren --- drivers/event/sw/Makefile | 1 + drivers/event/sw/sw_evdev.c | 1 + drivers/event/sw/sw_evdev.h | 12 + drivers/event/sw/sw_evdev_scheduler.c | 586 ++ 4 files changed, 600

[dpdk-dev] [PATCH 10/15] event/sw: add worker core functions

2017-01-16 Thread Harry van Haaren
new event, to drop a previous event, are converted to a series of flags which will be used by the scheduler code to perform the needed actions for that event. Signed-off-by: Bruce Richardson Signed-off-by: Gage Eads Signed-off-by: Harry van Haaren --- drivers/event/sw/Makefile | 1

[dpdk-dev] [PATCH 14/15] event/sw: add xstats support

2017-01-16 Thread Harry van Haaren
From: Bruce Richardson Add support for xstats to report out on the state of the eventdev. Useful for debugging and for unit tests, as well as observability at runtime and performance tuning of apps to work well with the scheduler. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren

[dpdk-dev] [PATCH 15/15] app/test: add unit tests for SW eventdev driver

2017-01-16 Thread Harry van Haaren
Signed-off-by: Harry van Haaren --- app/test/Makefile |5 +- app/test/test_sw_eventdev.c | 2031 +++ 2 files changed, 2035 insertions(+), 1 deletion(-) create mode 100644 app/test/test_sw_eventdev.c diff --git a/app/test/Makefile b/app/test

[dpdk-dev] [PATCH v2 00/15] next-eventdev: event/sw software eventdev

2017-01-31 Thread Harry van Haaren
eventdev implementation. This patchset contains the work of multiple developers, please see signoffs on each patch. Signed-off-by: Harry van Haaren Bruce Richardson (15): eventdev: remove unneeded dependencies eventdev: add APIs for extended stats event/sw: add new software-only eventdev

[dpdk-dev] [PATCH v2 03/15] event/sw: add new software-only eventdev driver

2017-01-31 Thread Harry van Haaren
: Creating eventdev sw device event_sw0, numa_node=0, sched_quanta=128 RTE>> Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- config/common_base| 5 + drivers/event/Makefile| 1 + drivers/event/sw/Ma

[dpdk-dev] [PATCH v2 01/15] eventdev: remove unneeded dependencies

2017-01-31 Thread Harry van Haaren
header is not needed, but following their removal, rte_memory.h is needed for the definition of the __rte_cache_aligned macro. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- lib/librte_eventdev/Makefile | 1 - lib/librte_eventdev/rte_eventdev.h | 5 +++-- 2 files changed, 3

[dpdk-dev] [PATCH v2 04/15] event/sw: add device capabilities function

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the info_get function to return details on the queues, flow, prioritization capabilities, etc. that this device has. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 23 +++ drivers/event/sw

[dpdk-dev] [PATCH v2 02/15] eventdev: add APIs for extended stats

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in APIs for extended stats so that eventdev implementations can report out information on their internal state. The APIs are based on, but not identical to, the equivalent ethdev functions. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- lib

[dpdk-dev] [PATCH v2 05/15] event/sw: add configure function

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 15 +++ drivers/event/sw/sw_evdev.h | 11 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c

[dpdk-dev] [PATCH v2 07/15] event/sw: add support for event queues

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the data structures for the event queues, and the eventdev functions to create and destroy those queues. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/iq_ring.h | 176 drivers

[dpdk-dev] [PATCH v2 08/15] event/sw: add support for event ports

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the data-structures for the ports used by workers to send packets to/from the scheduler. Also add in the functions to create/destroy those ports. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/event_ring.h | 179

[dpdk-dev] [PATCH v2 06/15] event/sw: add fns to return default port/queue config

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index b657eb4..ceca865 100644

[dpdk-dev] [PATCH v2 09/15] event/sw: add support for linking queues to ports

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 68 + 1 file changed, 68 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 0b26fcb

[dpdk-dev] [PATCH v2 12/15] event/sw: add start stop and close functions

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 74 + 1 file changed, 74 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 17b5e49

[dpdk-dev] [PATCH v2 11/15] event/sw: add scheduling logic

2017-01-31 Thread Harry van Haaren
Signed-off-by: Gage Eads Signed-off-by: Harry van Haaren --- drivers/event/sw/Makefile | 1 + drivers/event/sw/sw_evdev.c | 1 + drivers/event/sw/sw_evdev.h | 11 + drivers/event/sw/sw_evdev_scheduler.c | 602 ++ 4 files changed, 615

[dpdk-dev] [PATCH v2 14/15] event/sw: add xstats support

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add support for xstats to report out on the state of the eventdev. Useful for debugging and for unit tests, as well as observability at runtime and performance tuning of apps to work well with the scheduler. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren

[dpdk-dev] [PATCH v2 10/15] event/sw: add worker core functions

2017-01-31 Thread Harry van Haaren
new event, to drop a previous event, are converted to a series of flags which will be used by the scheduler code to perform the needed actions for that event. Signed-off-by: Bruce Richardson Signed-off-by: Gage Eads Signed-off-by: Harry van Haaren --- drivers/event/sw/Makefile | 1

[dpdk-dev] [PATCH v2 15/15] app/test: add unit tests for SW eventdev driver

2017-01-31 Thread Harry van Haaren
autotest.py Signed-off-by: Bruce Richardson Signed-off-by: David Hunt Signed-off-by: Harry van Haaren --- app/test/Makefile |5 +- app/test/autotest_data.py | 26 + app/test/test_sw_eventdev.c | 2071 +++ 3 files changed, 2101 insertions(+), 1

[dpdk-dev] [PATCH v2 13/15] event/sw: add dump function for easier debugging

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 118 1 file changed, 118 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index e352a5c

[dpdk-dev] [PATCH] doc/contributing: add ack review descriptions

2017-02-08 Thread Harry van Haaren
This commit details what is meant by the various email tags that the DPDK community use regularly. The descriptions state what each tag means, drawing from the kernel's understanding[1], and the discussion on the DPDK mailing list[2]. Signed-off-by: Harry van Haaren [1] https://www.kerne

[dpdk-dev] [PATCH v3 0/7] service cores: cover letter

2017-07-02 Thread Harry van Haaren
. Once sample app is enabled a service core walk-through with that sample app can be added to the docs, to provide a tutorial on service-core usage. Harry van Haaren (7): service cores: header and implementation service cores: EAL init changes service cores: coremask parsing service cores

[dpdk-dev] [PATCH v3 2/7] service cores: EAL init changes

2017-07-02 Thread Harry van Haaren
at initialization time, the services that require CPU time are already available when we reach the end of rte_eal_init(). Signed-off-by: Harry van Haaren --- v2 comments: - Include BSD implementation (Jerin) - Move details of core-tracking into rte_service_lcore_add(Jerin) - Given there are

[dpdk-dev] [PATCH v3 1/7] service cores: header and implementation

2017-07-02 Thread Harry van Haaren
of the service core concept, with 2 RFCs and this being v2 of the implementation. Signed-off-by: Harry van Haaren --- v2: Thanks Jerin for review - below a list your suggested changes; - Doxygen rename to "service cores" for consistency - use lcore instead of core for function names -

[dpdk-dev] [PATCH v3 3/7] service cores: coremask parsing

2017-07-02 Thread Harry van Haaren
Add logic for parsing a coremask from EAL, which allows the application to be unaware of the cores being taken from its coremask. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v2: - Remove printf() (Jerin) - Remove commented code (Jerin) - simplified core tracking, no requirement

[dpdk-dev] [PATCH v3 5/7] service cores: enable event/sw with service

2017-07-02 Thread Harry van Haaren
the registered services. Signed-off-by: Harry van Haaren --- v2: - Remove #include (Jerin) - Remove development prints (Jerin) - Track service name in PMD - Print warning if service does not have an lcore mapped (Jerin) --- drivers/event/sw/sw_evdev.c | 32

[dpdk-dev] [PATCH v3 4/7] service cores: add unit tests

2017-07-02 Thread Harry van Haaren
stop service lcores are actually having effect. Signed-off-by: Harry van Haaren --- v2 changes; - Rename variable to slcore_id (Jerin) - Rename function to unregister_all() (Jerin) - Fix typos (Jerin) - Add unit test for get_by_name() - Add unit tests (all suggestions by Jerin) -- get_name

[dpdk-dev] [PATCH v3 7/7] doc: add service cores to doc and release notes

2017-07-02 Thread Harry van Haaren
reflect that it can be run as a service. Signed-off-by: Harry van Haaren --- I would like to enable the service-cores in the eventdev_pipeline sample app, to showcase the power of the service-core abstraction. There is some remaining work TODO, in order to genericise the sample app for both HW and

[dpdk-dev] [PATCH v3 6/7] maintainers: claim service cores

2017-07-02 Thread Harry van Haaren
Sign-up to be the maintainer of public header files and implementation of the service-cores infrastructure. Signed-off-by: Harry van Haaren --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 00351ff..2e5081c 100644 --- a/MAINTAINERS +++ b

[dpdk-dev] [PATCH] event/sw: allow multiple calls to port setup

2017-07-03 Thread Harry van Haaren
This commit allows port_setup() to be called multiple times, as is required by the API to re-configure an already initialized port. Signed-off-by: Harry van Haaren --- This patch can be squashed with 5/5 of Bruce's event rings patchset: http://dpdk.org/dev/patchwork/patch/26110/ dr

[dpdk-dev] [PATCH v4 0/7] service cores: cover letter

2017-07-07 Thread Harry van Haaren
is still some churn there to enable both HW/SW PMDs seamlessly. Once sample app is enabled a service core walk-through with that sample app can be added to the docs, to provide a tutorial on service-core usage. Harry van Haaren (7): service cores: header and implementation service cores: EAL

[dpdk-dev] [PATCH v4 1/7] service cores: header and implementation

2017-07-07 Thread Harry van Haaren
of the service core concept, with 2 RFCs and this being v2 of the implementation. Signed-off-by: Harry van Haaren --- v4: - Fixed (unsigned) checkpatch error - Fixed misleading-indentation/if { } brackets (checkpatch/Jerin) - Fixed set function argument to be "enable" instead of "

[dpdk-dev] [PATCH v4 2/7] service cores: EAL init changes

2017-07-07 Thread Harry van Haaren
at initialization time, the services that require CPU time are already available when we reach the end of rte_eal_init(). Signed-off-by: Harry van Haaren --- v4: - Added #include for service cores in BSD eal.c v2 comments: - Include BSD implementation (Jerin) - Move details of core-tracking

[dpdk-dev] [PATCH v4 3/7] service cores: coremask parsing

2017-07-07 Thread Harry van Haaren
Add logic for parsing a coremask from EAL, which allows the application to be unaware of the cores being taken from its coremask. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v4: - Add --help print output (Jerin) - Fixed coremask parsing to ensure master core is ROLE_RTE (Jerin

[dpdk-dev] [PATCH v4 5/7] event/sw: enable SW PMD with service capability

2017-07-07 Thread Harry van Haaren
the registered services. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v4: - Include Acked by v2: - Remove #include (Jerin) - Remove development prints (Jerin) - Track service name in PMD - Print warning if service does not have an lcore mapped (Jerin) --- drivers/event/sw

[dpdk-dev] [PATCH v4 4/7] service cores: add unit tests

2017-07-07 Thread Harry van Haaren
stop service lcores are actually having effect. Signed-off-by: Harry van Haaren --- v4: - Remove static slcore_id, make service-core choice dynamic (Jerin) - Use lcore_get_next() to acquire service cores (Jerin) - Improve unit test to ensure app can remote_launc() on a core that previously served

[dpdk-dev] [PATCH v4 7/7] maintainers: claim service cores

2017-07-07 Thread Harry van Haaren
Sign-up to be the maintainer of public header files and implementation of the service-cores infrastructure. Signed-off-by: Harry van Haaren --- v4: - fix rte_service.c filename - Include service_cores.rst file --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[dpdk-dev] [PATCH v4 6/7] doc: add service cores to doc and release notes

2017-07-07 Thread Harry van Haaren
reflect that it can be run as a service. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v4: - Add ack from ML I would like to enable the service-cores in the eventdev_pipeline sample app, to showcase the power of the service-core abstraction. There is some remaining work TODO, in order

[dpdk-dev] [PATCH v5 0/7] service cores: cover letter

2017-07-11 Thread Harry van Haaren
service-core usage. Harry van Haaren (7): service cores: header and implementation service cores: EAL init changes service cores: coremask parsing service cores: add unit tests event/sw: enable SW PMD with service capability doc: add service cores to doc and release notes maintainers

[dpdk-dev] [PATCH v5 1/7] service cores: header and implementation

2017-07-11 Thread Harry van Haaren
hardware version exists that does not require a CPU. Signed-off-by: Harry van Haaren --- v5: - Improved service_set_stats_enable() to operate per service (Jerin) - Fixed un-documented doxygen parameter (Jerin) - Renamed cores_state to lcore_states (Jerin) - Optimized atomic operations and flags

[dpdk-dev] [PATCH v5 2/7] service cores: EAL init changes

2017-07-11 Thread Harry van Haaren
at initialization time, the services that require CPU time are already available when we reach the end of rte_eal_init(). Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v5: - Simplify EAL code, calling rte_service_start_with_defaults() (Jerin) - Added Ack from ML v4: - Added

[dpdk-dev] [PATCH v5 3/7] service cores: coremask parsing

2017-07-11 Thread Harry van Haaren
Add logic for parsing a coremask from EAL, which allows the application to be unaware of the cores being taken from its coremask. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v4: - Add --help print output (Jerin) - Fixed coremask parsing to ensure master core is ROLE_RTE (Jerin

[dpdk-dev] [PATCH v5 5/7] event/sw: enable SW PMD with service capability

2017-07-11 Thread Harry van Haaren
the registered services. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v4: - Include Acked by v2: - Remove #include (Jerin) - Remove development prints (Jerin) - Track service name in PMD - Print warning if service does not have an lcore mapped (Jerin) --- drivers/event/sw

[dpdk-dev] [PATCH v5 4/7] service cores: add unit tests

2017-07-11 Thread Harry van Haaren
stop service lcores are actually having effect. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v5: - Improve unit test for dump() to enable and disable stats (Jerin) - Add new unit test for MT unsafe service callback (Harry) - Added Ack from ML v4: - Remove static slcore_id, make

[dpdk-dev] [PATCH v5 6/7] doc: add service cores to doc and release notes

2017-07-11 Thread Harry van Haaren
reflect that it can be run as a service. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v4: - Add ack from ML I would like to enable the service-cores in the eventdev_pipeline sample app, to showcase the power of the service-core abstraction. There is some remaining work TODO, in order

[dpdk-dev] [PATCH v5 7/7] maintainers: claim service cores

2017-07-11 Thread Harry van Haaren
Sign-up to be the maintainer of public header files and implementation of the service-cores infrastructure. Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob --- v5: - Mark with EXPERIMENTAL - Update filename to rte_service_component.h - Added Ack from ML v4: - fix rte_service.c filename

[dpdk-dev] [PATCH] doc: add author on cc to git fixline alias

2017-07-12 Thread Harry van Haaren
history. If the original author performs a review, their Reviewed-by: or Acked-by: is stored in git history (same as now). Signed-off-by: Harry van Haaren --- This fixline suggestion was proposed here: http://dpdk.org/ml/archives/dev/2017-July/071107.html Based on Thomas' feedback, improv

[dpdk-dev] [PATCH] service: add corelist to EAL arguments

2017-07-17 Thread Harry van Haaren
This commit allows the -S (captial 's') to be used to indicate a corelist for Services. This is a "nice to have" patch, and does not modify any of the service core functionality. Suggested-by: Jerin Jacob Suggested-by: Thomas Monjalon Signed-off-by: Harry van Haaren --- l

[dpdk-dev] [PATCH] event: fix memory realloc check in port config

2017-07-17 Thread Harry van Haaren
nt the northbound APIs") Cc: jerin.ja...@caviumnetworks.com Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c index ca2900c..bb

[dpdk-dev] [PATCH] eventdev: add dev id checks to config functions

2017-07-24 Thread Harry van Haaren
to compile. Suggested-by: Jesse Bruni Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 36 +--- lib/librte_eventdev/rte_eventdev.h | 36 ++-- test/test/test_eventdev_octeontx.c | 32

[dpdk-dev] [PATCH] service: fix shifts to operate on 64 bit integers

2017-07-31 Thread Harry van Haaren
t formula is actually a uin64_t. Simply defining a const uint64_t and using it ensures the compiler is aware of the intention. The issue would only manifest if there were greater than 31 services registered. Fixes: 21698354c832 ("service: introduce service cores concept") Signed-off-by: Harr

[dpdk-dev] [PATCH v2] service: fix shifts to operate on 64 bit integers

2017-07-31 Thread Harry van Haaren
ice cores concept") Signed-off-by: Harry van Haaren --- v2: - Use UINT64_C() instead of const uint64_t method (Gaetan) - Refactored to keep checkpatch happy with line-lenghts --- lib/librte_eal/common/rte_service.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff

[dpdk-dev] [PATCH] dev: update git fixline alias

2017-08-03 Thread Harry van Haaren
The git fixline was updated in the dpdk.org repository to add the original author of the line being "fixed", using Cc: This patch updates the fixline here in the website. See patch for details: http://dpdk.org/dev/patchwork/patch/26860/ Signed-off-by: Harry van Haaren --- dev.html

  1   2   3   4   5   6   7   >