[dpdk-dev] [PATCH v3] doc: add new targets to "make help" output

2017-07-07 Thread Gabriel Carrillo
Commit aafaea3d3b70 ("devtools: add tags and cscope index generation") introduced new make targets. This change updates the help target output to reflect the additions. Signed-off-by: Gabriel Carrillo --- v3: * Updated formatting. doc/build-sdk-quick.txt | 2 ++ 1 file changed, 2

[dpdk-dev] [PATCH] doc: add new targets to "make help" output

2017-06-05 Thread Gabriel Carrillo
Commit aafaea3d3b70 ("devtools: add tags and cscope index generation") introduced new make targets. This change updates the help target output to reflect the additions. Signed-off-by: Gabriel Carrillo --- doc/build-sdk-quick.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[dpdk-dev] [PATCH v2] doc: add new targets to "make help" output

2017-06-06 Thread Gabriel Carrillo
Commit aafaea3d3b70 ("devtools: add tags and cscope index generation") introduced new make targets. This change updates the help target output to reflect the additions. Signed-off-by: Gabriel Carrillo --- doc/build-sdk-quick.txt | 21 +++-- 1 file changed, 11 inserti

[dpdk-dev] [PATCH 0/3] *** timer library enhancements ***

2017-08-23 Thread Gabriel Carrillo
each skiplist in its array and acquire a skiplist's lock while a run list is broken out; meanwhile, all other lists can continue to be modified. Then, all run lists for lcore k are collected and traversed together so timers are executed in their global order. Gabriel Carrillo (3): time

[dpdk-dev] [PATCH 1/3] timer: add per-installer pending lists for each lcore

2017-08-23 Thread Gabriel Carrillo
eases performance. Signed-off-by: Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 309 +++ lib/librte_timer/rte_timer.h | 9 +- 2 files changed, 202 insertions(+), 116 deletions(-) diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_ti

[dpdk-dev] [PATCH 2/3] timer: handle timers installed from non-EAL threads

2017-08-23 Thread Gabriel Carrillo
This commit adds support for timers being created from non-EAL threads; it maps timers from all such threads to lcore id RTE_MAX_LCORE, and puts them all in a corresponding skiplist. Signed-off-by: Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 48

[dpdk-dev] [PATCH 3/3] doc: update timer lib docs

2017-08-23 Thread Gabriel Carrillo
This change updates the timer library documentation to reflect a change to the organization of the skiplists in the implementation. Signed-off-by: Gabriel Carrillo --- doc/guides/prog_guide/timer_lib.rst | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a

[dpdk-dev] [PATCH v2 0/3] *** timer library enhancements ***

2017-08-25 Thread Gabriel Carrillo
each skiplist in its array and acquire a skiplist's lock while a run list is broken out; meanwhile, all other lists can continue to be modified. Then, all run lists for lcore k are collected and traversed together so timers are executed in their relative order. Gabriel Carrillo (3): time

[dpdk-dev] [PATCH v2 1/3] timer: add per-installer pending lists for each lcore

2017-08-25 Thread Gabriel Carrillo
eases performance. Signed-off-by: Gabriel Carrillo --- v2: * Address checkpatch warnings lib/librte_timer/rte_timer.c | 309 +++ lib/librte_timer/rte_timer.h | 9 +- 2 files changed, 202 insertions(+), 116 deletions(-) diff --git a/lib/librte_

[dpdk-dev] [PATCH v2 2/3] timer: handle timers installed from non-EAL threads

2017-08-25 Thread Gabriel Carrillo
This commit adds support for timers being created from non-EAL threads; it maps timers from all such threads to lcore id RTE_MAX_LCORE, and puts them all in a corresponding skiplist. Signed-off-by: Gabriel Carrillo --- v2: * Address checkpatch warnings lib/librte_timer/rte_timer.c | 48

[dpdk-dev] [PATCH v2 3/3] doc: update timer lib docs

2017-08-25 Thread Gabriel Carrillo
This change updates the timer library documentation to reflect a change to the organization of the skiplists in the implementation. Signed-off-by: Gabriel Carrillo --- doc/guides/prog_guide/timer_lib.rst | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a

[PATCH] service: fix early move to inactive status

2022-10-20 Thread Erik Gabriel Carrillo
we: - don't let the "service_active_on_lcore" state linger as 1 - don't clear the state early Fixes: 6550113be62d ("service: fix lingering active status") Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- lib/eal/common/rte_service.c | 13 +++-- 1 file ch

[PATCH v4] eventdev/timer: add API to get remaining ticks

2023-01-13 Thread Erik Gabriel Carrillo
Introduce an event timer adapter API which allows users to determine how many adapter ticks remain until an event timer expires. Signed-off-by: Erik Gabriel Carrillo --- v4: * Rename API to rte_event_timer_remaining_ticks_get * Return error if API out param is NULL instead asserting it is non

[PATCH] eventdev/timer: fix overflow issue

2023-01-24 Thread Erik Gabriel Carrillo
an integer type when returning. Also move the logic that checks the timeout range into the function that performs the above computation. Fixes: 6750b21bd6af ("eventdev: add default software timer adapter") Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- li

[PATCH v2] eventdev/timer: fix overflow issue

2023-01-24 Thread Erik Gabriel Carrillo
an integer type when returning. Also move the logic that checks the timeout range into the function that performs the above computation. Fixes: 6750b21bd6af ("eventdev: add default software timer adapter") Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- v2: * Fix impli

[dpdk-dev] [PATCH] eventdev: fix free of adapters storage

2021-10-20 Thread Erik Gabriel Carrillo
Fix a typo that can cause the hugepage memory that backs the adapters array to be freed unexpectedly. Fixes: e9caa6a09a "eventdev: move timer adapters memory to hugepage") Signed-off-by: Erik Gabriel Carrillo --- lib/eventdev/rte_event_timer_adapter.c | 2 +- 1 file changed, 1 inser

[PATCH v3] eventdev/timer: fix overflow issue

2023-02-09 Thread Erik Gabriel Carrillo
timer adapter") Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- v3: * Use integer operations instead of floating point, and use rte_reciprocal_divide() for division. v2: * Fix implicit int to float conversion build warning on Clang lib/eventdev/rte_event_timer_adap

[PATCH] eventdev/timer: move buffer flush call

2023-04-12 Thread Erik Gabriel Carrillo
flush call so that it happens with every invocation of the service function, rather than on every adapter tick, to avoid the delay. Fixes: cc7b73ea9e3b ("eventdev: add new software timer adapter") Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- lib/eventdev/rte_event_timer

[PATCH] eventdev/timer: add API to get remaining ticks

2022-12-16 Thread Erik Gabriel Carrillo
Introduce an event timer adapter API which allows users to determine how many adapter ticks remain until an event timer fires. Signed-off-by: Erik Gabriel Carrillo --- app/test/test_event_timer_adapter.c| 68 ++ lib/eventdev/event_timer_adapter_pmd.h | 7 +++ lib

[PATCH v2] eventdev/timer: add API to get remaining ticks

2022-12-19 Thread Erik Gabriel Carrillo
Introduce an event timer adapter API which allows users to determine how many adapter ticks remain until an event timer fires. Signed-off-by: Erik Gabriel Carrillo --- v2: * Rename API to rte_event_timer_get_remaining_ticks * Assert that API out param is non-NULL instead of checking and

[PATCH v3] eventdev/timer: add API to get remaining ticks

2022-12-19 Thread Erik Gabriel Carrillo
Introduce an event timer adapter API which allows users to determine how many adapter ticks remain until an event timer fires. Signed-off-by: Erik Gabriel Carrillo --- v3: * Handle ENOTSUP case in unit test v2: * Rename API to rte_event_timer_get_remaining_ticks * Assert that API out param is

[dpdk-dev] [PATCH v2] app/eventdev: detect deadlock for timer event producer

2018-12-03 Thread Erik Gabriel Carrillo
a producer") Signed-off-by: Erik Gabriel Carrillo --- v2: - Add a fixline to commit message app/test-eventdev/test_perf_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index 8618775.

[dpdk-dev] [PATCH v3] app/eventdev: detect deadlock for timer event producer

2018-12-03 Thread Erik Gabriel Carrillo
a producer") Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- v3: - Forgot to add Jerin's ack line. v2: - Add a fixline to commit message (Jerin) app/test-eventdev/test_perf_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-eventdev/t

[dpdk-dev] [PATCH v2 1/2] timer: allow timer management in shared memory

2018-12-07 Thread Erik Gabriel Carrillo
Erik Gabriel Carrillo --- lib/librte_timer/Makefile | 1 + lib/librte_timer/rte_timer.c | 519 ++--- lib/librte_timer/rte_timer.h | 226 +- lib/librte_timer/rte_timer_version.map | 22 ++ 4 files changed, 723 insertions(+

[dpdk-dev] [PATCH v2 0/2] Timer library changes

2018-12-07 Thread Erik Gabriel Carrillo
into their own series - version the symbols where the existing ABI was updated, and provide alternate implementation with behavior equivalent to original behavior. Validate ABI compatibility with validate-abi.sh - refactor changes to simplify patches Erik Gabriel Carrillo (2): tim

[dpdk-dev] [PATCH v2 2/2] timer: add function to stop all timers in a list

2018-12-07 Thread Erik Gabriel Carrillo
Add a function to the timer API that allows a caller to traverse a specified set of timer lists, stopping each timer in each list, and invoking a callback function. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 39 ++ lib

[dpdk-dev] [PATCH v2 0/1] New software event timer adapter

2018-12-07 Thread Erik Gabriel Carrillo
patch to the timer library that is referenced below.) Depends on: https://patches.dpdk.org/project/dpdk/list/?series=2699 [1] https://doc.dpdk.org/guides/prog_guide/event_timer_adapter.html Changes in v2: - split this change out into its own patch series Erik Gabriel Carrillo (1): eventdev: add

[dpdk-dev] [PATCH v2 1/1] eventdev: add new software event timer adapter

2018-12-07 Thread Erik Gabriel Carrillo
performance, this version does away with the ring and lets lcores in both primary and secondary processes insert timers directly into timer skiplist data structures; the service core directly accesses the lists as well, when looking for timers that have expired. Signed-off-by: Erik Gabriel

[dpdk-dev] [PATCH v3 1/2] timer: allow timer management in shared memory

2018-12-13 Thread Erik Gabriel Carrillo
Erik Gabriel Carrillo --- lib/librte_timer/Makefile | 1 + lib/librte_timer/rte_timer.c | 519 ++--- lib/librte_timer/rte_timer.h | 226 +- lib/librte_timer/rte_timer_version.map | 22 ++ 4 files changed, 723 insertions(+

[dpdk-dev] [PATCH v3 2/2] timer: add function to stop all timers in a list

2018-12-13 Thread Erik Gabriel Carrillo
Add a function to the timer API that allows a caller to traverse a specified set of timer lists, stopping each timer in each list, and invoking a callback function. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 39 ++ lib

[dpdk-dev] [PATCH v3 0/2] Timer library changes

2018-12-13 Thread Erik Gabriel Carrillo
.sh - refactor changes to simplify patches Erik Gabriel Carrillo (2): timer: allow timer management in shared memory timer: add function to stop all timers in a list lib/librte_timer/Makefile | 1 + lib/librte_timer/rte_timer.c | 558 ++--- l

[dpdk-dev] [PATCH v3 0/1] New software event timer adapter

2018-12-14 Thread Erik Gabriel Carrillo
unnecessary cast in mempool_put() call - update alignment of elements of array to avoid false sharing issue Changes in v2: - split this change out into its own patch series Erik Gabriel Carrillo (1): eventdev: add new software event timer adapter lib/librte_eventdev

[dpdk-dev] [PATCH v3 1/1] eventdev: add new software event timer adapter

2018-12-14 Thread Erik Gabriel Carrillo
performance, this version does away with the ring and lets lcores in both primary and secondary processes insert timers directly into timer skiplist data structures; the service core directly accesses the lists as well, when looking for timers that have expired. Signed-off-by: Erik Gabriel

[dpdk-dev] [PATCH v4 0/1] New software event timer adapter

2018-12-14 Thread Erik Gabriel Carrillo
: - split this change out into its own patch series Erik Gabriel Carrillo (1): eventdev: add new software event timer adapter lib/librte_eventdev/rte_event_timer_adapter.c | 689 +++--- 1 file changed, 277 insertions(+), 412 deletions(-) -- 2.6.4

[dpdk-dev] [PATCH v4 1/1] eventdev: add new software event timer adapter

2018-12-14 Thread Erik Gabriel Carrillo
performance, this version does away with the ring and lets lcores in both primary and secondary processes insert timers directly into timer skiplist data structures; the service core directly accesses the lists as well, when looking for timers that have expired. Signed-off-by: Erik Gabriel

[dpdk-dev] [PATCH v2] timer: fix race condition

2018-12-19 Thread Erik Gabriel Carrillo
her by rte_timer_manage() This commit fixes this race condition by only releasing the spinlock after the timer state has been transitioned from CONFIG to PENDING, which prevents rte_timer_manage() from seeing an incorrect state. Fixes: 9b15ba895b9f ("timer: use a skip list") Signed-

[dpdk-dev] [PATCH 1/1] timer: fix race condition

2018-11-29 Thread Erik Gabriel Carrillo
ge() This commit fixes this race condition by only releasing the spinlock after the timer state has been transitioned from CONFIG to PENDING, which prevents rte_timer_manage() from seeing an incorrect state. Fixes: 9b15ba895b9f ("timer: use a skip list") Signed-off-by: Erik Gabrie

[dpdk-dev] [PATCH 1/1] app/eventdev: detect deadlock for timer event producer

2018-11-29 Thread Erik Gabriel Carrillo
If timer events get dropped for some reason, the thread that launched producer and worker cores will never exit, because the deadlock check doesn't currently apply to the event timer adapter case. This commit fixes this. Signed-off-by: Erik Gabriel Carrillo --- app/test-eve

[dpdk-dev] [PATCH] eventdev: remove redundant timer adapter function prototypes

2018-11-29 Thread Erik Gabriel Carrillo
Fixes: a6562f6d6f8e ("eventdev: introduce event timer adapter") Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.h | 57 +-- 1 file changed, 2 insertions(+), 55 deletions(-) diff --git a/lib/librt

[dpdk-dev] [PATCH 1/3] timer: allow timer management in shared memory

2018-11-29 Thread Erik Gabriel Carrillo
Erik Gabriel Carrillo --- lib/librte_timer/Makefile | 1 + lib/librte_timer/rte_timer.c | 526 +++-- lib/librte_timer/rte_timer.h | 168 ++- lib/librte_timer/rte_timer_version.map | 21 +- 4 files changed, 614 insertions(+)

[dpdk-dev] [PATCH 2/3] timer: add function to stop all timers in a list

2018-11-29 Thread Erik Gabriel Carrillo
Add a function to the timer API that allows a caller to traverse a specified set of timer lists, stopping each timer in each list, and invoking a callback function. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 81 +++--- lib

[dpdk-dev] [PATCH 3/3] eventdev: add new software event timer adapter

2018-11-29 Thread Erik Gabriel Carrillo
lback function. The callback function is only called from the primary process, since that's where the service runs, and the callback is the same for all timers - it is defined to enqueue a timer expiry event in the event device. Signed-off-by: Erik Gabriel Carrillo --- lib/librt

[dpdk-dev] [PATCH 0/3] new software event timer adapter

2018-11-29 Thread Erik Gabriel Carrillo
/event_timer_adapter.html [2] https://doc.dpdk.org/guides/prog_guide/timer_lib.html Erik Gabriel Carrillo (3): timer: allow timer management in shared memory timer: add function to stop all timers in a list eventdev: add new software event timer adapter lib/librte_eventdev

[dpdk-dev] [PATCH v1 1/1] service: Add service lcore attr APIs

2018-05-04 Thread Erik Gabriel Carrillo
Add a counter that gets bumped each time the service runner loop goes around, and APIs to query and reset the attribute values. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eal/common/include/rte_service.h | 30 lib/librte_eal/common/rte_service.c | 43

[dpdk-dev] [PATCH v1 0/1] Add service lcore attributes API

2018-05-04 Thread Erik Gabriel Carrillo
ction that invokes services mapped to a service core). This is useful to applications that desire a "liveness" check to make sure a service core is not stuck. Erik Gabriel Carrillo (1): service: Add service lcore attr APIs lib/librte_eal/common/include/rte_service.h | 30

[dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5

2018-05-04 Thread Erik Gabriel Carrillo
sing-field-initializers to the test's CFLAGS to allow the current syntax if we are using GCC 5.0 or lower. Signed-off-by: Erik Gabriel Carrillo --- test/test/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test/Makefile b/test/test/Makefile index 2630ab4..2011857 100644 --- a/tes

[dpdk-dev] [PATCH v2 1/1] test: fix build with GCC 4.8.5

2018-05-07 Thread Erik Gabriel Carrillo
sing-field-initializers to the test's CFLAGS to allow the current syntax if we are using GCC 5.0 or lower. Fixes: d1f3385d0076 ("test: add event timer adapter auto-test") Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- v2: - Add the 'Fixes' tag. (Jerin) test/

[dpdk-dev] [PATCH v2 1/1] service: Add service lcore attr APIs

2018-05-09 Thread Erik Gabriel Carrillo
"liveness" check to make sure a service core is not stuck. Signed-off-by: Erik Gabriel Carrillo Acked-by: Harry van Haaren --- v2: - Update doxygen comments to indicate that APIs are experimental - Move cover letter description of patch to commit message (Harry) lib/librte_eal/common/i

[dpdk-dev] [PATCH v4 0/2] Timer library changes

2019-03-06 Thread Erik Gabriel Carrillo
n with behavior equivalent to original behavior. Validated ABI compatibility with validate-abi.sh - refactor changes to simplify patches Erik Gabriel Carrillo (2): timer: allow timer management in shared memory timer: add function to stop all timers in a list lib/librte_timer/Makefile

[dpdk-dev] [PATCH v4 2/2] timer: add function to stop all timers in a list

2019-03-06 Thread Erik Gabriel Carrillo
Add a function to the timer API that allows a caller to traverse a specified set of timer lists, stopping each timer in each list, and invoking a callback function. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 39 ++ lib

[dpdk-dev] [PATCH v4 1/2] timer: allow timer management in shared memory

2019-03-06 Thread Erik Gabriel Carrillo
Erik Gabriel Carrillo --- lib/librte_timer/Makefile | 1 + lib/librte_timer/rte_timer.c | 519 ++--- lib/librte_timer/rte_timer.h | 226 +- lib/librte_timer/rte_timer_version.map | 22 ++ 4 files changed, 723 insertions(+

[dpdk-dev] [PATCH] maintainers: claim responsibility for timer lib

2019-03-11 Thread Erik Gabriel Carrillo
Add myself as co-maintainer for the timer library. Signed-off-by: Erik Gabriel Carrillo --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 097cfb4..4b0beec 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1192,6 +1192,7 @@ F: doc/guides

[dpdk-dev] [PATCH v10 0/9] eventtimer: introduce event timer adapter

2018-04-03 Thread Erik Gabriel Carrillo
ved rte_event_timer_adapter_lookup() function - Replaced RTE_EVENT_TIMER_SUCCESS_{ARM,CANCEL} states with RTE_EVENT_TIMER_ARMED Erik Gabriel Carrillo (9): eventtimer: introduce event timer adapter eventdev: convert to SPDX license tag in header eventtimer: add common code mk: update li

[dpdk-dev] [PATCH v10 2/9] eventdev: convert to SPDX license tag in header

2018-04-03 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Hemant Agrawal Acked-by: Jerin Jacob --- lib/librte_eventdev/rte_eventdev.h | 37 + 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev

[dpdk-dev] [PATCH v10 1/9] eventtimer: introduce event timer adapter

2018-04-03 Thread Erik Gabriel Carrillo
represents a timer expiration, and it provides APIs with which adapters can be created or destroyed and event timers can be armed and canceled. Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- lib/librte_eventdev/Makefile

[dpdk-dev] [PATCH v10 4/9] mk: update library order in static build

2018-04-03 Thread Erik Gabriel Carrillo
The introduction of the event timer adapter library adds a dependency on the rte_timer library from the rte_eventdev library. Update the order so that the timer library comes after the eventdev library in the linker command when statically linking applications. Signed-off-by: Erik Gabriel

[dpdk-dev] [PATCH v10 5/9] eventtimer: add default software driver

2018-04-03 Thread Erik Gabriel Carrillo
If an eventdev PMD does not wish to provide event timer adapter ops definitions, the library will fall back to a default software implementation whose entry points are added by this commit. Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- lib/Makefile

[dpdk-dev] [PATCH v10 3/9] eventtimer: add common code

2018-04-03 Thread Erik Gabriel Carrillo
This commit adds the logic that is shared by all event timer adapter drivers; the common code handles instance allocation and some initialization. Signed-off-by: Erik Gabriel Carrillo --- config/common_base| 1 + drivers/event/sw/sw_evdev.c

[dpdk-dev] [PATCH v10 6/9] eventtimer: add support for meson build system

2018-04-03 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- config/rte_config.h | 1 + lib/librte_eventdev/meson.build | 9 ++--- lib/meson.build | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/rte_config.h b/config/rte_config.h index 72c0aa2..117c19f

[dpdk-dev] [PATCH v10 8/9] doc: add event timer adapter section to programmer's guide

2018-04-03 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- doc/guides/prog_guide/event_timer_adapter.rst | 296 ++ doc/guides/prog_guide/index.rst | 1 + 2 files changed, 297 insertions

[dpdk-dev] [PATCH v10 7/9] test: add event timer adapter auto-test

2018-04-03 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- test/test/Makefile |1 + test/test/test_event_timer_adapter.c | 1831 ++ 2 files changed, 1832 insertions(+) create mode 100644 test/test/test_event_timer_adapter.c diff

[dpdk-dev] [PATCH v10 9/9] doc: add event timer adapter documentation

2018-04-03 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- MAINTAINERS| 7 +++ doc/api/doxy-api-index.md | 32 +++- doc/guides/rel_notes/release_18_05.rst | 6 ++ 3 files changed, 16 insertions(+), 29 deletions

[dpdk-dev] [PATCH v11 0/9] eventtimer: introduce event timer adapter

2018-04-04 Thread Erik Gabriel Carrillo
of pointer to struct rte_event_timer_adapter with ids - Removed rte_event_timer_adapter_lookup() function - Replaced RTE_EVENT_TIMER_SUCCESS_{ARM,CANCEL} states with RTE_EVENT_TIMER_ARMED Erik Gabriel Carrillo (9): eventtimer: introduce event timer adapter eventdev: convert to SPDX license tag

[dpdk-dev] [PATCH v11 1/9] eventtimer: introduce event timer adapter

2018-04-04 Thread Erik Gabriel Carrillo
represents a timer expiration, and it provides APIs with which adapters can be created or destroyed and event timers can be armed and canceled. Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- lib/librte_eventdev/Makefile

[dpdk-dev] [PATCH v11 2/9] eventdev: convert to SPDX license tag in header

2018-04-04 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Hemant Agrawal Acked-by: Jerin Jacob --- lib/librte_eventdev/rte_eventdev.h | 37 + 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev

[dpdk-dev] [PATCH v11 6/9] eventtimer: add support for meson build system

2018-04-04 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- config/rte_config.h | 1 + lib/librte_eventdev/meson.build | 9 ++--- lib/meson.build | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/rte_config.h b/config

[dpdk-dev] [PATCH v11 5/9] eventtimer: add default software driver

2018-04-04 Thread Erik Gabriel Carrillo
If an eventdev PMD does not wish to provide event timer adapter ops definitions, the library will fall back to a default software implementation whose entry points are added by this commit. Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- lib/Makefile

[dpdk-dev] [PATCH v11 7/9] test: add event timer adapter auto-test

2018-04-04 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- test/test/Makefile |1 + test/test/test_event_timer_adapter.c | 1830 ++ 2 files changed, 1831 insertions(+) create mode 100644 test/test/test_event_timer_adapter.c diff

[dpdk-dev] [PATCH v11 4/9] mk: update library order in static build

2018-04-04 Thread Erik Gabriel Carrillo
The introduction of the event timer adapter library adds a dependency on the rte_timer library from the rte_eventdev library. Update the order so that the timer library comes after the eventdev library in the linker command when statically linking applications. Signed-off-by: Erik Gabriel

[dpdk-dev] [PATCH v11 3/9] eventtimer: add common code

2018-04-04 Thread Erik Gabriel Carrillo
This commit adds the logic that is shared by all event timer adapter drivers; the common code handles instance allocation and some initialization. Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- config/common_base| 1 + drivers/event/sw

[dpdk-dev] [PATCH v11 8/9] doc: add event timer adapter section to programmer's guide

2018-04-04 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- doc/guides/prog_guide/event_timer_adapter.rst | 296 ++ doc/guides/prog_guide/index.rst | 1 + 2 files changed, 297 insertions

[dpdk-dev] [PATCH v11 9/9] doc: add event timer adapter documentation

2018-04-04 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- MAINTAINERS| 7 +++ doc/api/doxy-api-index.md | 32 +++- doc/guides/rel_notes/release_18_05.rst | 6 ++ 3 files changed, 16 insertions(+), 29 deletions

[dpdk-dev] [PATCH v6 00/23] eventtimer: introduce event timer adapter

2018-01-10 Thread Erik Gabriel Carrillo
eplaced occurrences of pointer to struct rte_event_timer_adapter with ids - Removed rte_event_timer_adapter_lookup() function - Replaced RTE_EVENT_TIMER_SUCCESS_{ARM,CANCEL} states with RTE_EVENT_TIMER_ARMED Erik Gabriel Carrillo (23): eventtimer: add event timer adapter API eventtimer: a

[dpdk-dev] [PATCH v6 02/23] eventtimer: add common code

2018-01-10 Thread Erik Gabriel Carrillo
This commit adds the logic that is shared by all event timer adapter drivers; the common code handles instance allocation and some initialization. Signed-off-by: Erik Gabriel Carrillo --- drivers/event/sw/sw_evdev.c | 18 + lib/librte_eventdev/Makefile

[dpdk-dev] [PATCH v6 03/23] eventtimer: add default software driver stub

2018-01-10 Thread Erik Gabriel Carrillo
If an eventdev PMD does not wish to provide event timer adapter ops definitions, the library will fall back to a default software implementation whose entry points are added by this commit. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 107

[dpdk-dev] [PATCH v6 01/23] eventtimer: add event timer adapter API

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/Makefile | 1 + lib/librte_eventdev/rte_event_timer_adapter.h | 566 ++ lib/librte_eventdev/rte_eventdev.h| 4 +- 3 files changed, 569 insertions(+), 2 deletions(-) create mode

[dpdk-dev] [PATCH v6 04/23] test: add event timer adapter auto-test

2018-01-10 Thread Erik Gabriel Carrillo
Add initial infrastructure for event timer adapter auto-test. Signed-off-by: Erik Gabriel Carrillo --- test/test/Makefile | 1 + test/test/test_event_timer_adapter.c | 177 +++ 2 files changed, 178 insertions(+) create mode 100644 test/test

[dpdk-dev] [PATCH v6 08/23] eventtimer: add adapter start/stop definitions

2018-01-10 Thread Erik Gabriel Carrillo
Add definitions to the default software implementation for the functions that start and stop adapter instances. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib

[dpdk-dev] [PATCH v6 05/23] eventtimer: add adapter allocation definitions

2018-01-10 Thread Erik Gabriel Carrillo
Add definitions for the functions that allocate and deallocate adapter instances in the default software implementation. Signed-off-by: Erik Gabriel Carrillo --- lib/Makefile | 2 +- lib/librte_eventdev/Makefile | 2 +- lib/librte_eventdev

[dpdk-dev] [PATCH v6 07/23] eventtimer: add adapter get info function definition

2018-01-10 Thread Erik Gabriel Carrillo
Add a definition to the default software implementation for the entry point that can fill out driver-specific information in the info struct. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v6 06/23] test: exercise event timer adapter allocation functions

2018-01-10 Thread Erik Gabriel Carrillo
Exercise the create and free functions in the event timer adapter auto-test. Signed-off-by: Erik Gabriel Carrillo --- test/test/test_event_timer_adapter.c | 88 1 file changed, 88 insertions(+) diff --git a/test/test/test_event_timer_adapter.c b/test/test

[dpdk-dev] [PATCH v6 11/23] test: exercise event timer adapter start/stop functions

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- test/test/test_event_timer_adapter.c | 77 +++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/test/test/test_event_timer_adapter.c b/test/test/test_event_timer_adapter.c index c8623aa..58cbaba 100644 --- a

[dpdk-dev] [PATCH v6 09/23] eventtimer: add API to get service id

2018-01-10 Thread Erik Gabriel Carrillo
to run on. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 20 lib/librte_eventdev/rte_event_timer_adapter.h | 19 +++ lib/librte_eventdev/rte_event_timer_adapter_pmd.h | 4 lib/librte_eventdev

[dpdk-dev] [PATCH v6 12/23] eventtimer: add event timer arm/cancel function definitions

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- lib/Makefile | 2 +- lib/librte_eventdev/Makefile | 2 +- lib/librte_eventdev/rte_event_timer_adapter.c | 155 +++--- mk/rte.app.mk | 2 +- 4 files

[dpdk-dev] [PATCH v6 10/23] eventtimer: remove service id entry from info structure

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 11 +-- lib/librte_eventdev/rte_event_timer_adapter.h | 2 -- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/librte_eventdev/rte_event_timer_adapter.c b/lib/librte_eventdev

[dpdk-dev] [PATCH v6 13/23] eventtimer: add adapter service definition

2018-01-10 Thread Erik Gabriel Carrillo
Define the callback function for the service that corresponds to an adapter instance, as well as the callback for expired timers that the service manages. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 198 +- lib/librte_eventdev

[dpdk-dev] [PATCH v6 14/23] eventtimer: add event timer initializer function

2018-01-10 Thread Erik Gabriel Carrillo
Add a function that can be used to initialize event timers so that they are in a known state before being used for arm or cancel operations. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 8 lib/librte_eventdev/rte_event_timer_adapter.h | 11

[dpdk-dev] [PATCH v6 16/23] eventtimer: add stats to API

2018-01-10 Thread Erik Gabriel Carrillo
Add interfaces to support the collection, retrieval and resetting of per-adapter statistics. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 79 +++ lib/librte_eventdev/rte_event_timer_adapter.h | 51 +++ lib

[dpdk-dev] [PATCH v6 17/23] eventtimer: add support for single-producer put mode

2018-01-10 Thread Erik Gabriel Carrillo
Add support for the RTE_EVENT_TIMER_ADAPTER_F_SP_PUT flag, which indicates that the API should be used in single-producer put mode. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v6 18/23] eventtimer: add non-blocking mode for event timer operations

2018-01-10 Thread Erik Gabriel Carrillo
Add a mode to the event timer adapter that allows the event timer arm and cancel APIs to return immediately, rather than waiting for the service to update the state of each timer. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 69

[dpdk-dev] [PATCH v6 20/23] maintainers: add event timer adapter section

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b51c2d0..55581c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -291,6 +291,12 @@ F: lib/librte_eventdev/*eth_rx_adapter* F: test/test

[dpdk-dev] [PATCH v6 19/23] test: exercise event timer arm and expiry

2018-01-10 Thread Erik Gabriel Carrillo
Add a test that creates an event timer and detects the generation of a timer expiry event being scheduled through the software event device. Signed-off-by: Erik Gabriel Carrillo --- test/test/test_event_timer_adapter.c | 106 +++ 1 file changed, 106 insertions

[dpdk-dev] [PATCH v6 15/23] eventtimer: add buffering of timer expiry events

2018-01-10 Thread Erik Gabriel Carrillo
Buffer timer expiry events generated while walking a "run list" in rte_timer_manage, and burst enqueue them to an event device to the extent possible. Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 118 +++--- 1 file ch

[dpdk-dev] [PATCH v6 22/23] doc: add event timer adapter section to programmer's guide

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- doc/guides/prog_guide/event_timer_adapter.rst | 301 ++ doc/guides/prog_guide/index.rst | 1 + 2 files changed, 302 insertions(+) create mode 100644 doc/guides/prog_guide/event_timer_adapter.rst diff --git a/doc

[dpdk-dev] [PATCH v6 21/23] doc: add event timer adapter to API index

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- doc/api/doxy-api-index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md index 3492702..3110658 100644 --- a/doc/api/doxy-api-index.md +++ b/doc/api/doxy-api-index.md @@ -46,6 +46,7 @@ The public

[dpdk-dev] [PATCH v6 23/23] doc: add event timer adapter to release notes

2018-01-10 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- doc/guides/rel_notes/release_18_02.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_18_02.rst b/doc/guides/rel_notes/release_18_02.rst index 24b67bb..8eafcd3 100644 --- a/doc/guides/rel_notes/release_18_02.rst

[dpdk-dev] [PATCH 1/1] doc: announce API change to lcore role function

2018-01-12 Thread Erik Gabriel Carrillo
This an API/ABI change notice for DPDK 18.05 announcing a change in the meaning of the return values of the rte_lcore_has_role() function. Signed-off-by: Erik Gabriel Carrillo --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH 1/1] timer: fix reset on service cores

2018-01-12 Thread Erik Gabriel Carrillo
;) Cc: sta...@dpdk.org Signed-off-by: Erik Gabriel Carrillo --- lib/librte_timer/rte_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 604ecab..4bbcd06 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/li

[dpdk-dev] [PATCH v8 0/9] eventtimer: introduce event timer adapter

2018-03-29 Thread Erik Gabriel Carrillo
API with "adapter" - Replaced occurrences of pointer to struct rte_event_timer_adapter with ids - Removed rte_event_timer_adapter_lookup() function - Replaced RTE_EVENT_TIMER_SUCCESS_{ARM,CANCEL} states with RTE_EVENT_TIMER_ARMED Erik Gabriel Carrillo (9): eventtimer: introduce event t

[dpdk-dev] [PATCH v8 1/9] eventtimer: introduce event timer adapter

2018-03-29 Thread Erik Gabriel Carrillo
represents a timer expiration, and it provides APIs with which adapters can be created or destroyed and event timers can be armed and canceled. Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/Makefile | 1

  1   2   >