From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19E63454BF; Fri, 21 Jun 2024 22:51:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45B4942EC5; Fri, 21 Jun 2024 22:51:45 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 3BC0D42E82 for ; Fri, 21 Jun 2024 22:51:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719003103; x=1750539103; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IgQzEyNowAqfXLLXHE8xuiWcOZthHg2LN6PbfCwa4JQ=; b=GTTMB7noSLCIt5pOXQDtlQmeNMYJMYHIYyYTEccB3JhOzCTcU0HNktTW IAuaMuuzbMIF1XdZa8fhBuzRlPyz1RN+/SPqH0PT/IzOqKwrLhfMZZy74 nWFtdFenneGTZj8RpohJmYErk/FGOnOqhW3PlCtU2xNir+ZBNiKuqR2fM P/6EBW57B2JKhVJbTkcZJJlntvgdvto4jNRqnCC8JOkhJKsY28kFzLCBt R6lwUFdx25rLy1gsLH9mX998ngisUiO1EUJvIeMeWS5vUN9k+m93U1/CP WCHjjigyw/lDM0SJO3fRXyvzOMGfb+pCnL0aZi0wjFbEtzYUfaAo3iKvn g==; X-CSE-ConnectionGUID: 3gCzhgo8RueY0m4Dq2p9kw== X-CSE-MsgGUID: 7qUOYu2bSbqEztyXCqtWUA== X-IronPort-AV: E=McAfee;i="6700,10204,11110"; a="41459157" X-IronPort-AV: E=Sophos;i="6.08,255,1712646000"; d="scan'208";a="41459157" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2024 13:51:42 -0700 X-CSE-ConnectionGUID: e1Ca/U4cT4uzbhPXYcayPA== X-CSE-MsgGUID: +3IKZyQrSPeWAnmrxDdE7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,255,1712646000"; d="scan'208";a="65947781" Received: from txanpdk02.an.intel.com ([10.123.117.76]) by fmviesa002.fm.intel.com with ESMTP; 21 Jun 2024 13:51:41 -0700 From: Abdullah Sevincer 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 Subject: [PATCH v2 2/2] eventdev: add support for enqueue reorder Date: Fri, 21 Jun 2024 15:51:36 -0500 Message-Id: <20240621205136.569728-3-abdullah.sevincer@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240621205136.569728-1-abdullah.sevincer@intel.com> References: <20240621201248.504989-2-abdullah.sevincer@intel.com> <20240621205136.569728-1-abdullah.sevincer@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This commit adds support flag to enable enqueue reorder feature. When this flag is enabled in the port configuration PMD restores dequeue order on enqueue if applications happen to change it. Signed-off-by: Abdullah Sevincer --- lib/eventdev/rte_eventdev.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index 08e5f9320b..f4220dd5dc 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -1073,6 +1073,14 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id, * @see rte_event_port_setup() */ +#define RTE_EVENT_PORT_CFG_RESTORE_DEQ_ORDER (1ULL << 5) +/**< Flag to enable feature enqueue reordering to dequeue. + * The feature restores dequeue order on enqueue if applications + * happen to change the order. + * + * @see rte_event_port_setup() + */ + /** Event port configuration structure */ struct rte_event_port_conf { int32_t new_event_threshold; -- 2.25.1