[v6,3/3] event/dsw: add capability for independent enqueue

Message ID 20240711195444.2627373-4-abdullah.sevincer@intel.com (mailing list archive)
State Superseded
Delegated to: Jerin Jacob
Headers
Series Independent Enqueue Support |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/github-robot: build fail github build: failed

Commit Message

Abdullah Sevincer July 11, 2024, 7:54 p.m. UTC
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@intel.com>
---
 doc/guides/rel_notes/release_24_07.rst | 4 ++++
 drivers/event/dsw/dsw_evdev.c          | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)
  

Comments

Mattias Rönnblom July 23, 2024, 6:41 a.m. UTC | #1
On 2024-07-11 21:54, Abdullah Sevincer wrote:
> 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@intel.com>
> ---
>   doc/guides/rel_notes/release_24_07.rst | 4 ++++
>   drivers/event/dsw/dsw_evdev.c          | 3 ++-
>   2 files changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/guides/rel_notes/release_24_07.rst b/doc/guides/rel_notes/release_24_07.rst
> index d8564b19f0..c04f014943 100644
> --- a/doc/guides/rel_notes/release_24_07.rst
> +++ b/doc/guides/rel_notes/release_24_07.rst
> @@ -167,6 +167,10 @@ New Features
>     * Added support for independent enqueue feature. Updated Event Device and
>       PMD feature list.
>   
> +* **Updated DSW Driver for independent enqueue feature**
> +
> +  * Added capability flag for DSW to advertise independent enqueue feature.
> +
>   
>   Removed Items
>   -------------
> diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c
> index 0dea1091e3..5c483d869c 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
>   	};
>   }
>   

Thanks!

Reviewed-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
  

Patch

diff --git a/doc/guides/rel_notes/release_24_07.rst b/doc/guides/rel_notes/release_24_07.rst
index d8564b19f0..c04f014943 100644
--- a/doc/guides/rel_notes/release_24_07.rst
+++ b/doc/guides/rel_notes/release_24_07.rst
@@ -167,6 +167,10 @@  New Features
   * Added support for independent enqueue feature. Updated Event Device and
     PMD feature list.
 
+* **Updated DSW Driver for independent enqueue feature**
+
+  * Added capability flag for DSW to advertise independent enqueue feature.
+
 
 Removed Items
 -------------
diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c
index 0dea1091e3..5c483d869c 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
 	};
 }