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 C076A454BF; Fri, 21 Jun 2024 22:13:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F32342EB6; Fri, 21 Jun 2024 22:12:57 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id A11204042E for ; Fri, 21 Jun 2024 22:12:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719000775; x=1750536775; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IgQzEyNowAqfXLLXHE8xuiWcOZthHg2LN6PbfCwa4JQ=; b=P6gDkXdostd1X0eF7AXNc2JlF+7tJXFEtDEZiFS9jG5No2oqC+DuF4Gx kQOqm7tEKTV9n8S3fz3sA3QMrYG0A64meCNBS9M0hnGTZJPZk5ZSTkQro z+3CTQxnsnnjjIIpjzRk1Kv/JtsSOxbY0B1sdECNiZiUUQWaNSrLsWdbv iOCrH00Ir1xbYURhdDPrwDnolLZyA5NHmv7u/3Sr0FioderbkRe2SDW+g ogjjgbQp2JruuyOlwkMtHXpvYHzAtTH3D9ICVqHNIwIhMndpJOrglXdAB cdOFTOg2fnvFOsaoqACjc1vvHGDloWT2MpprG820hXakpWyh0D2SdQRNa Q==; X-CSE-ConnectionGUID: xpClebxwSManKiH7k5LQ5A== X-CSE-MsgGUID: R+wOQMUbT8SWaofn393jag== X-IronPort-AV: E=McAfee;i="6700,10204,11110"; a="16023887" X-IronPort-AV: E=Sophos;i="6.08,255,1712646000"; d="scan'208";a="16023887" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2024 13:12:55 -0700 X-CSE-ConnectionGUID: w7xvAkvkQaKziThI8C9S+A== X-CSE-MsgGUID: HAesr7FlTVWlmvIcgC20pg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,255,1712646000"; d="scan'208";a="47634824" Received: from txanpdk02.an.intel.com ([10.123.117.76]) by orviesa005.jf.intel.com with ESMTP; 21 Jun 2024 13:12:54 -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 v1 2/2] eventdev: add support for enqueue reorder Date: Fri, 21 Jun 2024 15:12:48 -0500 Message-Id: <20240621201248.504989-3-abdullah.sevincer@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240621201248.504989-1-abdullah.sevincer@intel.com> References: <20240621201248.504989-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