[PATCH v2] eventdev: add port attribute for independent enqueue

2024-12-16 Thread pravin . pathak
From: Pravin Pathak Independent Enqueue support is added to DPDK 24.11. Adding support for RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ attribute to rte_event_port_attr_get() which was missing Signed-off-by: Pravin Pathak --- lib/eventdev/rte_eventdev.c | 8 lib/eventdev/rte_eventdev.h | 4

[PATCH v1] event/dlb2: add port attribute for independent enqueue

2024-12-12 Thread pravin . pathak
From: Pravin Pathak Independent Enqueue support is added to DPDK 24.11 Adding the attribute rte_event_port_attr_get() was missing This commit adds it to retrieve port attributes Signed-off-by: Pravin Pathak --- lib/eventdev/rte_eventdev.c | 8 lib/eventdev/rte_eventdev.h | 6

[PATCH v1] event/dlb2: enhancement to DLB credit management

2025-02-25 Thread Pravin Pathak
Updates are added to enable releasing of unused credits by threads to avoid deadlock and starving of other active threads needing credits. It also adds compile time options to enable/disable credit checks. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- .mailmap

[PATCH v1 4/7] event/dlb2: support managing history list resource

2025-05-08 Thread Pravin Pathak
B ports CQ depths * 2) * If alloc_hl_entries is not specified, then Total HL entries for the eventdev = num_ldb_ports * 64 Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 220 + drivers/event/dlb2/dl

[PATCH v1 5/7] event/dlb2: avoid credit release race condition

2025-05-08 Thread Pravin Pathak
While unlinking ports, all associated credits should be released. This commit avoids race condition when main thread is unlinking while workers are running. Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v1 2/7] event/dlb2: changes to correctly validate COS ID arguments

2025-05-08 Thread Pravin Pathak
: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 32 +++- drivers/event/dlb2/dlb2_priv.h | 1 - 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index a0e673b96b..58eb27f495 100644 --- a/drivers/event

[PATCH v1 1/7] event/dlb2: addresses deq failure when CQ depth <= 16

2025-05-08 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/dlb2/pf/dlb2_pf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v1 0/7] event/dlb2: dlb2 hw resource management

2025-05-08 Thread Pravin Pathak
resources management. Pravin Pathak (6): event/dlb2: addresses deq failure when CQ depth <= 16 event/dlb2: changes to correctly validate COS ID arguments event/dlb2: return 96 single link ports for DLB2.5 event/dlb2: support managing history list resource event/dlb2: avoid credit rele

[PATCH v1 3/7] event/dlb2: return 96 single link ports for DLB2.5

2025-05-08 Thread Pravin Pathak
DLB 2.0 device has 64 single linked or directed ports. DLB 2.5 device has 96 single linked ports. This commit fixes issue of rte_event_dev_info_get returning 64 instead of 96 single link ports for DLB2.5 Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 4

[PATCH v1 6/7] event/dlb2: update qid depth xstat in vector path

2025-05-08 Thread Pravin Pathak
update QID depth xstats counter in vector dequeue path Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 5f3b816665..19fe973bff 100644 --- a/drivers/event/dlb2/dlb2.c

[PATCH v1 7/7] event/dlb2: fix default credits in dlb2_eventdev_info_get()

2025-05-08 Thread Pravin Pathak
From: Tirthendu Sarkar dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/pf/dlb2_pf.c | 2 ++

[PATCH v1 0/7] event/dlb2: dlb2 hw resource management

2025-05-08 Thread Pravin Pathak
resources management. Pravin Pathak (6): event/dlb2: addresses deq failure when CQ depth <= 16 event/dlb2: changes to correctly validate COS ID arguments event/dlb2: return 96 single link ports for DLB2.5 event/dlb2: support managing history list resource event/dlb2: avoid credit rele

[PATCH v1 1/7] event/dlb2: addresses deq failure when CQ depth <= 16

2025-05-08 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/dlb2/pf/dlb2_pf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v1] event/dlb2: fixes names of DLB2 token pop enums

2025-06-19 Thread Pravin Pathak
added RTE_PMD_DLB2_ prefix to dlb2 token pop mode enmus to avoid name comflict. These enums are passed to public API rte_pmd_dlb2_set_token_pop_mode(). Fixes: c667583d82f4 ("event/dlb2: add token pop API") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --- drivers/event/d

[PATCH v4 4/7] event/dlb2: support managing history list resource

2025-06-18 Thread Pravin Pathak
B ports CQ depths * 2) * If alloc_hl_entries is not specified, then Total HL entries for the eventdev = num_ldb_ports * 64 Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 220 + drivers/event/dlb2/dl

[PATCH v4 1/7] event/dlb2: fix addresses deq failure when CQ depth <= 16

2025-06-18 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Fixes: 3a6d0c04e7fb3e ("event/dlb2: add port setup") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/d

[PATCH v4 2/7] event/dlb2: fix validaton of LDB port COS ID arguments

2025-06-18 Thread Pravin Pathak
: bec8901bfe9f ("event/dlb2: support ldb port specific COS") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 32 +++- drivers/event/dlb2/dlb2_priv.h | 1 - 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/

[PATCH v4 0/7] event/dlb2: dlb2 hw resource management

2025-06-18 Thread Pravin Pathak
() Fixed other documentation feedback Pravin Pathak (6): event/dlb2: fix addresses deq failure when CQ depth <= 16 event/dlb2: fix validaton of LDB port COS ID arguments event/dlb2: fix num single link ports for DLB2.5 event/dlb2: support managing history list resource event/dlb2:

[PATCH v4 5/7] event/dlb2: fix to avoid credit release race condition

2025-06-18 Thread Pravin Pathak
While unlinking ports, all associated credits should be released. This commit avoids race condition when main thread is unlinking while workers are running. Fixes: a29248b57b31 ("event/dlb2: add port unlink and unlinks in progress") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --

[PATCH v4 3/7] event/dlb2: fix num single link ports for DLB2.5

2025-06-18 Thread Pravin Pathak
ned-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 8722e62948..69dc3cf7c9 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -241,

[PATCH v4 6/7] event/dlb2: fix qid depth xstat in vector path

2025-06-18 Thread Pravin Pathak
update QID depth xstats counter in vector dequeue path Fixes: 000a7b8e7582 ("event/dlb2: optimize dequeue operation") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c

[PATCH v4 7/7] event/dlb2: fix default credits based on HW version

2025-06-18 Thread Pravin Pathak
From: Tirthendu Sarkar dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Fixes: b66a418d2ad3 ("event/dlb2: add v2.5 probe") Cc: sta...@dpdk.org Sign

[PATCH v3 4/7] event/dlb2: support managing history list resource

2025-06-17 Thread Pravin Pathak
B ports CQ depths * 2) * If alloc_hl_entries is not specified, then Total HL entries for the eventdev = num_ldb_ports * 64 Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 220 + drivers/event/dlb2/dl

[PATCH v3 2/7] event/dlb2: fix validaton of LDB port COS ID arguments

2025-06-17 Thread Pravin Pathak
: bec8901bfe9f ("event/dlb2: support ldb port specific COS") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 32 +++- drivers/event/dlb2/dlb2_priv.h | 1 - 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/

[PATCH v3 3/7] event/dlb2: fix num single link ports for DLB2.5

2025-06-17 Thread Pravin Pathak
ned-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 58eb27f495..24c56a7968 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -241,

[PATCH v3 5/7] event/dlb2: fix to avoid credit release race condition

2025-06-17 Thread Pravin Pathak
While unlinking ports, all associated credits should be released. This commit avoids race condition when main thread is unlinking while workers are running. Fixes: a29248b57b31 ("event/dlb2: add port unlink and unlinks in progress") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --

[PATCH v3 6/7] event/dlb2: fix qid depth xstat in vector path

2025-06-17 Thread Pravin Pathak
update QID depth xstats counter in vector dequeue path Fixes: 000a7b8e7582 ("event/dlb2: optimize dequeue operation") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c

[PATCH v3 0/7] event/dlb2: dlb2 hw resource management

2025-06-17 Thread Pravin Pathak
v1 3/7] Added Fixes tag [PATCH v1 5/7] Added Fixes tag [PATCH v1 6/7] Added Fixes tag [PATCH v1 7/7] Added Fixes tag Pravin Pathak (6): event/dlb2: fix addresses deq failure when CQ depth <= 16 event/dlb2: fix validaton of LDB port COS ID arguments event/dlb2: fix num single link po

[PATCH v3 7/7] event/dlb2: fix default credits based on HW version

2025-06-17 Thread Pravin Pathak
From: Tirthendu Sarkar dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Fixes: b66a418d2ad3 ("event/dlb2: add v2.5 probe") Cc: sta...@dpdk.org Sign

[PATCH v3 1/7] event/dlb2: fix addresses deq failure when CQ depth <= 16

2025-06-17 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Fixes: 3a6d0c04e7fb3e ("event/dlb2: add port setup") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/d

[PATCH v1] app/eventdev: fix number of releases sent during cleanup

2025-06-22 Thread Pravin Pathak
During cleanup, only send releases for events app was not able to enqueue. Current code is sending releases for entire dequeue burst. Fixes: f0b68c0b2af7 ("app/eventdev: clean up worker state before exit") Cc: sta...@dpdk.org Signed-off-by: Pravin Pathak --- app/tes

[PATCH v2 2/7] event/dlb2: changes to correctly validate COS ID arguments

2025-06-03 Thread Pravin Pathak
: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 32 +++- drivers/event/dlb2/dlb2_priv.h | 1 - 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index a0e673b96b..58eb27f495 100644 --- a/drivers/event

[PATCH v2 3/7] event/dlb2: return 96 single link ports for DLB2.5

2025-06-03 Thread Pravin Pathak
DLB 2.0 device has 64 single linked or directed ports. DLB 2.5 device has 96 single linked ports. API rte_event_dev_info_get() will return 64 directed ports for DLB 2.0 and 96 single linked ports for DLB2.5 Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed

[PATCH v2 1/7] event/dlb2: addresses deq failure when CQ depth <= 16

2025-06-03 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/dlb2/pf/dlb2_pf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v2 6/7] event/dlb2: update qid depth xstat in vector path

2025-06-03 Thread Pravin Pathak
update QID depth xstats counter in vector dequeue path Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 6734e93eac..6dfb345de8 100644 --- a/drivers/event/dlb2/dlb2.c

[PATCH v2 4/7] event/dlb2: support managing history list resource

2025-06-03 Thread Pravin Pathak
B ports CQ depths * 2) * If alloc_hl_entries is not specified, then Total HL entries for the eventdev = num_ldb_ports * 64 Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 220 + drivers/event/dlb2/dl

[PATCH v2 7/7] event/dlb2: return default credits based on HW version

2025-06-03 Thread Pravin Pathak
From: Tirthendu Sarkar dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/pf/dlb2_pf.c | 2 ++

[PATCH v2 5/7] event/dlb2: avoid credit release race condition

2025-06-03 Thread Pravin Pathak
While unlinking ports, all associated credits should be released. This commit avoids race condition when main thread is unlinking while workers are running. Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 0/7] event/dlb2: dlb2 hw resource management

2025-06-03 Thread Pravin Pathak
v2: [PATCH v1 3/7] Addressed issue with Fixes tag [PATCH v1 4/7] Renamed structure and Macros to avoid name space conflicts. [PATCH v1 4/7] Addressed Doxygen format feedback Pravin Pathak (6): event/dlb2: addresses deq failure

[PATCH v2] event/dlb2: add support for stop and restart dlb device

2025-07-05 Thread Pravin Pathak
This feature enables restarting a stopped eventdev with a call to rte_event_dev_start(). For this, the DLB scheduling domain needs to be stopped, all DLB ports disabled during eventdev stop and re-enabled during start. Port configuration is preserved. Signed-off-by: Pravin Pathak Signed-off-by

[PATCH v1] event/dlb2: add support for stop and restart dlb device

2025-07-05 Thread Pravin Pathak
This feature enables restarting a stopped eventdev with a call to rte_event_dev_start(). For this, the DLB scheduling domain needs to be stopped, all DLB ports disabled during eventdev stop and re-enabled during start. Port configuration is preserved. Signed-off-by: Pravin Pathak Signed-off-by

[PATCH v2] event/dlb2: add dequeue interrupt mode support

2025-06-29 Thread Pravin Pathak
interrupt. Default mode is polling. This commit also adds code to handle device error interrupts and print alarm details. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- doc/guides/eventdevs/dlb2.rst | 20 + drivers/event/dlb2/dlb2.c | 236

[PATCH v1] event/dlb2: update DLB documentation for history list config

2025-06-29 Thread Pravin Pathak
Update DPDK documentation for configuring DLB hardware history list resource using devargs arguments. Fixes: 33ab065d0c40 ("event/dlb2: support managing history list resource") Signed-off-by: Pravin Pathak --- doc/guides/eventdevs/dlb2.rst | 23 +++ 1 file c

[PATCH v1] event/dlb2: add dequeue interrupt mode support

2025-06-27 Thread Pravin Pathak
interrupt. Default mode is polling. This commit also adds code to handle device error interrupts and print alarm details. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- doc/guides/eventdevs/dlb2.rst | 20 + drivers/event/dlb2/dlb2.c | 236

[PATCH v1] mailmap: add new email to DPDK

2025-07-19 Thread Pravin Pathak
Adding new mail for DPDK contribution Signed-off-by: Pravin Pathak --- .mailmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index c7d55c7386..1c5c367f6c 100644 --- a/.mailmap +++ b/.mailmap @@ -1240,7 +1240,7 @@ Prateek Agarwal Prathisna Padmasanan

[PATCH v2] mailmap: add new email to DPDK

2025-07-19 Thread Pravin Pathak
Adding new mail for DPDK contribution Signed-off-by: Pravin Pathak --- .mailmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index c7d55c7386..1c5c367f6c 100644 --- a/.mailmap +++ b/.mailmap @@ -1240,7 +1240,7 @@ Prateek Agarwal Prathisna Padmasanan

[PATCH v1] mailmap: add new email to DPDK

2025-07-14 Thread Pravin Pathak
Adding new mail for DPDK contribution Signed-off-by: Pravin Pathak --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index c7d55c7386..c81e745ce7 100644 --- a/.mailmap +++ b/.mailmap @@ -1240,6 +1240,7 @@ Prateek Agarwal Prathisna Padmasanan Praveen