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 5F9E4454C0; Sat, 22 Jun 2024 00:24:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38A3A42EC5; Sat, 22 Jun 2024 00:24:17 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 97A7A4025C for ; Sat, 22 Jun 2024 00:24:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719008655; x=1750544655; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IgQzEyNowAqfXLLXHE8xuiWcOZthHg2LN6PbfCwa4JQ=; b=O5ydHK2v4zyurkltNRF4OuHKWTq03ACBfLqZhBArkm4XxwpF7CV/b4St ibq7uZFMs0161eVCld62tpXCfnq8FxHEBs90XEqcv8NvDlDdEBhbO6IGD 2jiuoe0qWIf1FLrpMKAX1uhtI7uT+hLpOFlSbEtRjyHGTThoqCXT/v5Q5 djls0n34PYgdzMEtC6CZ3hf9Bim9bXyLKXc73ooCh+QT1TebvEYVGqUz/ t7faVBO2d+OGcEesEkkmDoECtUxHAfZ2berH+nGY7Xu6SfHakeEphy8ze B3ggIz3U2FXhWq7vmiBO8TKtzA60SGyz+pEU7/kDAcAPmQlNWoH4PUM7f g==; X-CSE-ConnectionGUID: qi4NnIYbR0i0ivxOg1WqvQ== X-CSE-MsgGUID: rvZi64GfRc2tVH6kg40dOg== X-IronPort-AV: E=McAfee;i="6700,10204,11110"; a="15819270" X-IronPort-AV: E=Sophos;i="6.08,256,1712646000"; d="scan'208";a="15819270" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2024 15:24:14 -0700 X-CSE-ConnectionGUID: sU8cKmqUQiGVK+Vs+HH8iA== X-CSE-MsgGUID: xAwi2Eg+SW2dC9GD2OI/Cg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,256,1712646000"; d="scan'208";a="43405690" Received: from txanpdk02.an.intel.com ([10.123.117.76]) by orviesa007.jf.intel.com with ESMTP; 21 Jun 2024 15:24:13 -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 v3 2/2] eventdev: add support for enqueue reorder Date: Fri, 21 Jun 2024 17:24:08 -0500 Message-Id: <20240621222408.583464-3-abdullah.sevincer@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240621222408.583464-1-abdullah.sevincer@intel.com> References: <20240621201248.504989-2-abdullah.sevincer@intel.com> <20240621222408.583464-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