[PATCH v13 3/3] event/dsw: add capability for independent enqueue

Abdullah Sevincer abdullah.sevincer at intel.com
Thu Oct 3 22:36:58 CEST 2024


To use independent enqueue capability applications need to set flag
RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ during port setup only if the
capability RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ exists. Hence, this
commit adds the capability of independent enqueue to the DSW driver.

Signed-off-by: Abdullah Sevincer <abdullah.sevincer at intel.com>
Acked-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
---
 doc/guides/rel_notes/release_24_11.rst | 1 +
 drivers/event/dsw/dsw_evdev.c          | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst
index 98e9732100..4e4ca4fc23 100644
--- a/doc/guides/rel_notes/release_24_11.rst
+++ b/doc/guides/rel_notes/release_24_11.rst
@@ -76,6 +76,7 @@ New Features
     use ``RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ`` to enable the feature if the
     capability  ``RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ`` exists.
 
+  * Updated DSW driver for independent enqueue feature.
 
 
 Removed Items
diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c
index 8a1a2db8ac..9fb187bc74 100644
--- a/drivers/event/dsw/dsw_evdev.c
+++ b/drivers/event/dsw/dsw_evdev.c
@@ -230,7 +230,8 @@ dsw_info_get(struct rte_eventdev *dev __rte_unused,
 		RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE|
 		RTE_EVENT_DEV_CAP_NONSEQ_MODE|
 		RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT|
-		RTE_EVENT_DEV_CAP_CARRY_FLOW_ID
+		RTE_EVENT_DEV_CAP_CARRY_FLOW_ID |
+		RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ
 	};
 }
 
-- 
2.25.1



More information about the dev mailing list