From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 63B64458AA;
	Fri, 30 Aug 2024 18:24:24 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id E12AE42F37;
	Fri, 30 Aug 2024 18:24:12 +0200 (CEST)
Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16])
 by mails.dpdk.org (Postfix) with ESMTP id 2765542EE6
 for <dev@dpdk.org>; Fri, 30 Aug 2024 18:24:07 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1725035048; x=1756571048;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=mh5BcoMIyE6OUD9jdOYKPxaKNtZcXCI3CCgXGYGicOo=;
 b=gdVeiVPC6KfhZ+2k8SywINrxvI5ryrATJBXd9gjb7CYcIQPUAQrTFOqh
 3YN8VsLWNq9RFTrYV6eMon09HXi+DqqR3MaFpMloqOSw/EqEa0tqndtZ3
 WX9nwtx4XU6Rf+zI0tVi1UhbgwzQLnAW5CHQpvj+SZfGpxb+cIkXSCcW0
 advtzHIBEsZhcTr7Ng0Wm3ynyE3NSqsxDBPFzdpi6vWDRYvZKAILk8mjd
 W+VyvT180gbCXAqSlaJB9lv7mkC9z6G/FaWR8isw79ui+gbUk7d+YE+sM
 76Xu4shnkARWPkAIQ/Nfc7QfgxoG/Ew3YLxkssORtCeY1e2FmxEoFoKWh g==;
X-CSE-ConnectionGUID: YsW8TIngR569CtTGpVLwHQ==
X-CSE-MsgGUID: o7lWrKmvRlyTIhAJl/qOGw==
X-IronPort-AV: E=McAfee;i="6700,10204,11180"; a="13301687"
X-IronPort-AV: E=Sophos;i="6.10,189,1719903600"; d="scan'208";a="13301687"
Received: from fmviesa006.fm.intel.com ([10.60.135.146])
 by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 30 Aug 2024 09:24:03 -0700
X-CSE-ConnectionGUID: y3aatf3xSGe35VMLQ1vkYg==
X-CSE-MsgGUID: 8VoG/ouCQqmh1ny6madSRA==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.10,189,1719903600"; d="scan'208";a="63563637"
Received: from txanpdk02.an.intel.com ([10.123.117.76])
 by fmviesa006.fm.intel.com with ESMTP; 30 Aug 2024 09:24:03 -0700
From: Abdullah Sevincer <abdullah.sevincer@intel.com>
To: dev@dpdk.org
Cc: jerinj@marvell.com, bruce.richardson@intel.com, pravin.pathak@intel.com,
 mattias.ronnblom@ericsson.com, manish.aggarwal@intel.com,
 Abdullah Sevincer <abdullah.sevincer@intel.com>
Subject: [PATCH v10 3/3] event/dsw: add capability for independent enqueue
Date: Fri, 30 Aug 2024 11:23:57 -0500
Message-Id: <20240830162357.2057922-4-abdullah.sevincer@intel.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <20240830162357.2057922-1-abdullah.sevincer@intel.com>
References: <20240812200030.988314-3-abdullah.sevincer@intel.com>
 <20240830162357.2057922-1-abdullah.sevincer@intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

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>
Acked-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
---
 doc/guides/rel_notes/release_24_11.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_11.rst b/doc/guides/rel_notes/release_24_11.rst
index 04f389876a..b8d1f36e54 100644
--- a/doc/guides/rel_notes/release_24_11.rst
+++ b/doc/guides/rel_notes/release_24_11.rst
@@ -35,6 +35,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
 	};
 }
 
-- 
2.25.1